From 02ba63696644df8f10baae31a216e3c333adf799 Mon Sep 17 00:00:00 2001
From: ianbarber
+ * The Google+ API enables developers to build on top of the Google+ platform.
+ *
+ * For more information about this service, see the
+ * API Documentation
+ *
- * The Google+ API enables developers to build on top of the Google+ platform.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Gives Ad Exchange seller users access to their inventory and the ability to generate reports
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you manage your Ad Exchange Buyer account.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Gives AdSense publishers access to their inventory and the ability to generate reports
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Gives AdSense Hosts access to report generation, ad code generation, and publisher management capabilities.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * View and manage your Google Analytics data
- *
- * For more information about this service, see the
- * API Documentation
- *
- * A data platform for customers to create, manage, share and query data.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * API for access to the data within Blogger.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you search for books and manage your Google Books library.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you manipulate events and other calendar data.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * API for the Google Compute Engine service.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you search over a website or collection of websites
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you create, run and download reports.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * The API to interact with Drive.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you access the Freebase repository of open data.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * API for working with Fusion Tables data.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you have programmatic access to your Google Affiliate Network data.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you read and update your current location and work with your location history
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Licensing API to view and manage license for your domain.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Moderator API
- *
- * For more information about this service, see the
- * API Documentation
- *
- * OAuth2 API
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you manage activities, comments and badges in Orkut. More stuff coming in time.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you analyze the performance of a web page and get tailored suggestions to make that page faster.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you access a cloud hosted machine learning service that makes it easy to build smart apps
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you search over product data.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you programatically verify ownership of websites or domains with Google.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you store and retrieve potentially-large, immutable data objects.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you access a Google App Engine Pull Task Queue over REST.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you manage your tasks and task lists.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you translate text from one language to another
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Lets you create, inspect, and manage goo.gl short URLs
- *
- * For more information about this service, see the
- * API Documentation
- *
- * The Google Web Fonts Developer API.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Retrieve your YouTube Analytics reports.
- *
- * For more information about this service, see the
- * API Documentation
- *
- * Programmatic access to YouTube features.
- *
- * For more information about this service, see the
- * API Documentation
- * Single User
: " . $resp->getResponseBody() . "
";
//Retrieving All User Aliases for a User
$domain = "example.com";
$user = rawurlencode("user@domain.com");
- $req = new Google_HttpRequest("https://apps-apis.google.com/a/feeds/alias/2.0/$domain?userEmail=$user");
+ $req = new Google_Http_Request("https://apps-apis.google.com/a/feeds/alias/2.0/$domain?userEmail=$user");
$resp = $client::getIo()->authenticatedRequest($req);
print "All User Aliases for User
: " . $resp->getResponseBody() . "
";
// Deleting a User Alias from a Domain (Experimental)
$domain = "example.com";
$user = rawurlencode("user@domain.com");
- $req = new Google_HttpRequest("https://apps-apis.google.com/a/feeds/alias/2.0/$domain/$user", 'DELETE');
+ $req = new Google_Http_Request("https://apps-apis.google.com/a/feeds/alias/2.0/$domain/$user", 'DELETE');
$resp = $client::getIo()->authenticatedRequest($req);
print "Deleting a User Alias from a Domain
: " . $resp->getResponseBody() . "
";
// Retrieving List of 100 Nicknames
- $req = new Google_HttpRequest("https://apps-apis.google.com/a/feeds/domain/nickname/2.0");
+ $req = new Google_Http_Request("https://apps-apis.google.com/a/feeds/domain/nickname/2.0");
$resp = $client::getIo()->authenticatedRequest($req);
print "Retrieving List of 100 Nicknames
: " . $resp->getResponseBody() . "
";
diff --git a/examples/batch.php b/examples/batch.php
index 934f202..1193c6a 100644
--- a/examples/batch.php
+++ b/examples/batch.php
@@ -15,8 +15,8 @@
* the License.
*/
-require_once '../src/Google_Client.php';
-require_once '../src/contrib/Google_PlusService.php';
+require_once 'Google_Client.php';
+require_once 'contrib/Google_PlusService.php';
session_start();
$client = new Google_Client();
diff --git a/examples/books/index.php b/examples/books/index.php
index bfcd7e5..7a2ee2b 100644
--- a/examples/books/index.php
+++ b/examples/books/index.php
@@ -16,8 +16,8 @@
*/
session_start();
-require_once '../../src/Google_Client.php';
-require_once '../../src/contrib/Google_BooksService.php';
+require_once '../Google_Client.php';
+require_once '../contrib/Google_BooksService.php';
// Include the boilerplate markup.
include 'interface.html';
diff --git a/examples/books/simple.php b/examples/books/simple.php
index e648038..3199ab8 100644
--- a/examples/books/simple.php
+++ b/examples/books/simple.php
@@ -15,8 +15,8 @@
* limitations under the License.
*/
-require_once '../../src/Google_Client.php';
-require_once '../../src/contrib/Google_BooksService.php';
+require_once '../Google_Client.php';
+require_once '../contrib/Google_BooksService.php';
$client = new Google_Client();
$client->setApplicationName("My_Books_API_Example");
diff --git a/examples/calendar/simple.php b/examples/calendar/simple.php
index 1dbf7a3..9c430e3 100644
--- a/examples/calendar/simple.php
+++ b/examples/calendar/simple.php
@@ -1,6 +1,6 @@
setApplicationName("PageSpeedOnline_Example_App");
diff --git a/examples/plus/index.php b/examples/plus/index.php
index 82a606b..4047320 100644
--- a/examples/plus/index.php
+++ b/examples/plus/index.php
@@ -14,8 +14,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-require_once '../../src/Google_Client.php';
-require_once '../../src/contrib/Google_PlusService.php';
+require_once '../Google_Client.php';
+require_once '../contrib/Google_PlusService.php';
session_start();
diff --git a/examples/plus/simple.php b/examples/plus/simple.php
index 1f11724..45517c1 100644
--- a/examples/plus/simple.php
+++ b/examples/plus/simple.php
@@ -1,6 +1,6 @@
setAssertionCredentials(new Google_AssertionCredentials(
+$client->setAssertionCredentials(new Google_Auth_AssertionCredentials(
SERVICE_ACCOUNT_NAME,
array('https://www.googleapis.com/auth/prediction'),
$key)
diff --git a/examples/shopping/simple.php b/examples/shopping/simple.php
index fdbfed8..2f30204 100644
--- a/examples/shopping/simple.php
+++ b/examples/shopping/simple.php
@@ -1,6 +1,6 @@
setApplicationName("Google Shopping PHP Starter Application");
diff --git a/examples/siteVerification/simple.php b/examples/siteVerification/simple.php
index 07d557f..c118786 100644
--- a/examples/siteVerification/simple.php
+++ b/examples/siteVerification/simple.php
@@ -1,6 +1,6 @@
setApplicationName('Google Translate PHP Starter Application');
diff --git a/examples/urlshortener/index.php b/examples/urlshortener/index.php
index 8e6dfe3..ca66b5e 100644
--- a/examples/urlshortener/index.php
+++ b/examples/urlshortener/index.php
@@ -16,8 +16,8 @@
*/
session_start();
-require_once '../../src/Google_Client.php';
-require_once '../../src/contrib/Google_UrlshortenerService.php';
+require_once '../Google_Client.php';
+require_once '../contrib/Google_UrlshortenerService.php';
// Visit https://code.google.com/apis/console to
// generate your client id, client secret, and redirect uri.
diff --git a/examples/userinfo/index.php b/examples/userinfo/index.php
index 7bb511a..28e8ac5 100644
--- a/examples/userinfo/index.php
+++ b/examples/userinfo/index.php
@@ -14,8 +14,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-require_once '../../src/Google_Client.php';
-require_once '../../src/contrib/Google_Oauth2Service.php';
+require_once '../Google_Client.php';
+require_once '../contrib/Google_Oauth2Service.php';
session_start();
$client = new Google_Client();
diff --git a/examples/webfonts/simple.php b/examples/webfonts/simple.php
index 36da144..9b32d6a 100644
--- a/examples/webfonts/simple.php
+++ b/examples/webfonts/simple.php
@@ -1,6 +1,6 @@
setApplicationName("Google WebFonts PHP Starter Application");
From d198fc66e0adc315c143bcea500ff9d6196f98a2 Mon Sep 17 00:00:00 2001
From: silvano {$result['object']['content']}\n";
+}
+exit;
if (isset($_GET['logout'])) {
unset($_SESSION['token']);
diff --git a/src/Google/Client.php b/src/Google/Client.php
index 521b41f..f813e16 100644
--- a/src/Google/Client.php
+++ b/src/Google/Client.php
@@ -47,6 +47,7 @@
require_once 'Google/Auth/AssertionCredentials.php';
require_once 'Google/Cache/File.php';
+require_once 'Google/Collection.php';
require_once 'Google/Exception.php';
require_once 'Google/IO/Curl.php';
require_once 'Google/Model.php';
diff --git a/src/contrib/Google_PlusService.php b/src/Google/Service/Plus.php
similarity index 72%
rename from src/contrib/Google_PlusService.php
rename to src/Google/Service/Plus.php
index bb47d53..522a811 100644
--- a/src/contrib/Google_PlusService.php
+++ b/src/Google/Service/Plus.php
@@ -13,16 +13,54 @@
* the License.
*/
+/**
+ * Service definition for Plus (v1).
+ *
+ *
- * $plusService = new Google_PlusService(...);
+ * $plusService = new google_PlusService(...);
* $activities = $plusService->activities;
*
*/
- class Google_ActivitiesServiceResource extends Google_Service_Resource {
+ class Google_Service_Plus_Activities_Resource extends Google_Service_Resource {
/**
@@ -30,14 +68,14 @@ class Google_ActivitiesServiceResource extends Google_Service_Resource {
*
* @param string $activityId The ID of the activity to get.
* @param array $optParams Optional parameters.
- * @return Google_Activity
+ * @return Google_Service_Plus_Activity
*/
public function get($activityId, $optParams = array()) {
$params = array('activityId' => $activityId);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
- return new Google_Activity($data);
+ return new Google_Service_Plus_Activity($data);
} else {
return $data;
}
@@ -51,14 +89,14 @@ public function get($activityId, $optParams = array()) {
*
* @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 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.
- * @return Google_ActivityFeed
+ * @return Google_Service_Plus_ActivityFeed
*/
public function listActivities($userId, $collection, $optParams = array()) {
$params = array('userId' => $userId, 'collection' => $collection);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
- return new Google_ActivityFeed($data);
+ return new Google_Service_Plus_ActivityFeed($data);
} else {
return $data;
}
@@ -73,14 +111,14 @@ public function listActivities($userId, $collection, $optParams = array()) {
* @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 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.
- * @return Google_ActivityFeed
+ * @return Google_Service_Plus_ActivityFeed
*/
public function search($query, $optParams = array()) {
$params = array('query' => $query);
$params = array_merge($params, $optParams);
$data = $this->__call('search', array($params));
if ($this->useObjects()) {
- return new Google_ActivityFeed($data);
+ return new Google_Service_Plus_ActivityFeed($data);
} else {
return $data;
}
@@ -91,11 +129,11 @@ public function search($query, $optParams = array()) {
* The "comments" collection of methods.
* Typical usage is:
*
- * $plusService = new Google_PlusService(...);
+ * $plusService = new google_PlusService(...);
* $comments = $plusService->comments;
*
*/
- class Google_CommentsServiceResource extends Google_Service_Resource {
+ class Google_Service_Plus_Comments_Resource extends Google_Service_Resource {
/**
@@ -103,14 +141,14 @@ class Google_CommentsServiceResource extends Google_Service_Resource {
*
* @param string $commentId The ID of the comment to get.
* @param array $optParams Optional parameters.
- * @return Google_Comment
+ * @return Google_Service_Plus_Comment
*/
public function get($commentId, $optParams = array()) {
$params = array('commentId' => $commentId);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
- return new Google_Comment($data);
+ return new Google_Service_Plus_Comment($data);
} else {
return $data;
}
@@ -124,14 +162,14 @@ public function get($commentId, $optParams = array()) {
* @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.
* @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.
- * @return Google_CommentFeed
+ * @return Google_Service_Plus_CommentFeed
*/
public function listComments($activityId, $optParams = array()) {
$params = array('activityId' => $activityId);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
- return new Google_CommentFeed($data);
+ return new Google_Service_Plus_CommentFeed($data);
} else {
return $data;
}
@@ -142,11 +180,11 @@ public function listComments($activityId, $optParams = array()) {
* The "moments" collection of methods.
* Typical usage is:
*
- * $plusService = new Google_PlusService(...);
+ * $plusService = new google_PlusService(...);
* $moments = $plusService->moments;
*
*/
- class Google_MomentsServiceResource extends Google_Service_Resource {
+ class Google_Service_Plus_Moments_Resource extends Google_Service_Resource {
/**
@@ -155,18 +193,18 @@ class Google_MomentsServiceResource extends Google_Service_Resource {
*
* @param string $userId The ID of the user to record activities 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 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_Moment
+ * @return Google_Service_Plus_Moment
*/
- public function insert($userId, $collection, Google_Moment $postBody, $optParams = array()) {
+ 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);
$data = $this->__call('insert', array($params));
if ($this->useObjects()) {
- return new Google_Moment($data);
+ return new Google_Service_Plus_Moment($data);
} else {
return $data;
}
@@ -182,14 +220,14 @@ public function insert($userId, $collection, Google_Moment $postBody, $optParams
* @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_MomentsFeed
+ * @return Google_Service_Plus_MomentsFeed
*/
public function listMoments($userId, $collection, $optParams = array()) {
$params = array('userId' => $userId, 'collection' => $collection);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
- return new Google_MomentsFeed($data);
+ return new Google_Service_Plus_MomentsFeed($data);
} else {
return $data;
}
@@ -212,11 +250,11 @@ public function remove($id, $optParams = array()) {
* The "people" collection of methods.
* Typical usage is:
*
- * $plusService = new Google_PlusService(...);
+ * $plusService = new google_PlusService(...);
* $people = $plusService->people;
*
*/
- class Google_PeopleServiceResource extends Google_Service_Resource {
+ class Google_Service_Plus_People_Resource extends Google_Service_Resource {
/**
@@ -225,14 +263,14 @@ class Google_PeopleServiceResource extends Google_Service_Resource {
*
* @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_Person
+ * @return Google_Service_Plus_Person
*/
public function get($userId, $optParams = array()) {
$params = array('userId' => $userId);
$params = array_merge($params, $optParams);
$data = $this->__call('get', array($params));
if ($this->useObjects()) {
- return new Google_Person($data);
+ return new Google_Service_Plus_Person($data);
} else {
return $data;
}
@@ -247,14 +285,14 @@ public function get($userId, $optParams = array()) {
* @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 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.
- * @return Google_PeopleFeed
+ * @return Google_Service_Plus_PeopleFeed
*/
public function listPeople($userId, $collection, $optParams = array()) {
$params = array('userId' => $userId, 'collection' => $collection);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
- return new Google_PeopleFeed($data);
+ return new Google_Service_Plus_PeopleFeed($data);
} else {
return $data;
}
@@ -269,14 +307,14 @@ public function listPeople($userId, $collection, $optParams = array()) {
*
* @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 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.
- * @return Google_PeopleFeed
+ * @return Google_Service_Plus_PeopleFeed
*/
public function listByActivity($activityId, $collection, $optParams = array()) {
$params = array('activityId' => $activityId, 'collection' => $collection);
$params = array_merge($params, $optParams);
$data = $this->__call('listByActivity', array($params));
if ($this->useObjects()) {
- return new Google_PeopleFeed($data);
+ return new Google_Service_Plus_PeopleFeed($data);
} else {
return $data;
}
@@ -290,61 +328,27 @@ public function listByActivity($activityId, $collection, $optParams = array()) {
* @opt_param string language Specify the preferred language to search with. See search language codes for available values.
* @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 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.
- * @return Google_PeopleFeed
+ * @return Google_Service_Plus_PeopleFeed
*/
public function search($query, $optParams = array()) {
$params = array('query' => $query);
$params = array_merge($params, $optParams);
$data = $this->__call('search', array($params));
if ($this->useObjects()) {
- return new Google_PeopleFeed($data);
+ return new Google_Service_Plus_PeopleFeed($data);
} else {
return $data;
}
}
}
-/**
- * Service definition for Google_Plus (v1).
- *
- *
- * $adexchangesellerService = new Google_AdExchangeSellerService(...);
- * $adunits = $adexchangesellerService->adunits;
- *
- */
- class Google_AdunitsServiceResource 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_AdUnit
- */
- public function get($adClientId, $adUnitId, $optParams = array()) {
- $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_AdUnit($data);
- } else {
- return $data;
- }
- }
- /**
- * List all ad units in the specified ad client for this Ad Exchange account. (adunits.list)
- *
- * @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 maxResults The maximum number of ad units to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_AdUnits
- */
- public function listAdunits($adClientId, $optParams = array()) {
- $params = array('adClientId' => $adClientId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_AdUnits($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "customchannels" collection of methods.
- * Typical usage is:
- *
- * $adexchangesellerService = new Google_AdExchangeSellerService(...);
- * $customchannels = $adexchangesellerService->customchannels;
- *
- */
- class Google_AdunitsCustomchannelsServiceResource extends Google_Service_Resource {
-
-
- /**
- * List all custom channels which the specified ad unit belongs to. (customchannels.list)
- *
- * @param string $adClientId Ad client which contains the ad unit.
- * @param string $adUnitId Ad unit for which to list custom channels.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string maxResults The maximum number of custom channels to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_CustomChannels
- */
- public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) {
- $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CustomChannels($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "customchannels" collection of methods.
- * Typical usage is:
- *
- * $adexchangesellerService = new Google_AdExchangeSellerService(...);
- * $customchannels = $adexchangesellerService->customchannels;
- *
- */
- class Google_CustomchannelsServiceResource 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_CustomChannel
- */
- public function get($adClientId, $customChannelId, $optParams = array()) {
- $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_CustomChannel($data);
- } else {
- return $data;
- }
- }
- /**
- * List all custom channels in the specified ad client for this Ad Exchange account.
- * (customchannels.list)
- *
- * @param string $adClientId Ad client for which to list custom channels.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string maxResults The maximum number of custom channels to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_CustomChannels
- */
- public function listCustomchannels($adClientId, $optParams = array()) {
- $params = array('adClientId' => $adClientId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CustomChannels($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "adunits" collection of methods.
- * Typical usage is:
- *
- * $adexchangesellerService = new Google_AdExchangeSellerService(...);
- * $adunits = $adexchangesellerService->adunits;
- *
- */
- class Google_CustomchannelsAdunitsServiceResource extends Google_Service_Resource {
-
-
- /**
- * List all ad units in the specified custom channel. (adunits.list)
- *
- * @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 maxResults The maximum number of ad units to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_AdUnits
- */
- public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) {
- $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_AdUnits($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "reports" collection of methods.
- * Typical usage is:
- *
- * $adexchangesellerService = new Google_AdExchangeSellerService(...);
- * $reports = $adexchangesellerService->reports;
- *
- */
- class Google_ReportsServiceResource 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 dimension Dimensions to base the report on.
- * @opt_param string filter Filters to be run on the report.
- * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- * @opt_param string maxResults The maximum number of rows of report data to return.
- * @opt_param string metric Numeric columns to include in the report.
- * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
- * @opt_param string startIndex Index of the first row of report data to return.
- * @return Google_Report
- */
- public function generate($startDate, $endDate, $optParams = array()) {
- $params = array('startDate' => $startDate, 'endDate' => $endDate);
- $params = array_merge($params, $optParams);
- $data = $this->__call('generate', array($params));
- if ($this->useObjects()) {
- return new Google_Report($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "saved" collection of methods.
- * Typical usage is:
- *
- * $adexchangesellerService = new Google_AdExchangeSellerService(...);
- * $saved = $adexchangesellerService->saved;
- *
- */
- class Google_ReportsSavedServiceResource 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 maxResults The maximum number of rows of report data to return.
- * @opt_param int startIndex Index of the first row of report data to return.
- * @return Google_Report
- */
- public function generate($savedReportId, $optParams = array()) {
- $params = array('savedReportId' => $savedReportId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('generate', array($params));
- if ($this->useObjects()) {
- return new Google_Report($data);
- } else {
- return $data;
- }
- }
- /**
- * List all saved reports in this Ad Exchange account. (saved.list)
- *
- * @param array $optParams Optional parameters.
- *
- * @opt_param int maxResults The maximum number of saved reports to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_SavedReports
- */
- public function listReportsSaved($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SavedReports($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "urlchannels" collection of methods.
- * Typical usage is:
- *
- * $adexchangesellerService = new Google_AdExchangeSellerService(...);
- * $urlchannels = $adexchangesellerService->urlchannels;
- *
- */
- class Google_UrlchannelsServiceResource extends Google_Service_Resource {
-
-
- /**
- * List all URL channels in the specified ad client for this Ad Exchange account. (urlchannels.list)
- *
- * @param string $adClientId Ad client for which to list URL channels.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string maxResults The maximum number of URL channels to include in the response, used for paging.
- * @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.
- * @return Google_UrlChannels
- */
- public function listUrlchannels($adClientId, $optParams = array()) {
- $params = array('adClientId' => $adClientId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_UrlChannels($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for Google_AdExchangeSeller (v1).
- *
- *
- * $adexchangebuyerService = new google_AdexchangebuyerService(...);
- * $creatives = $adexchangebuyerService->creatives;
- *
- */
- class google_CreativesServiceResource extends Google_ServiceResource {
-
-
- /**
- * Gets the status for a single creative. (creatives.get)
- *
- * @param int $accountId The id for the account that will serve this creative.
- * @param string $buyerCreativeId The buyer-specific id for this creative.
- * @param array $optParams Optional parameters.
- * @return google_Creative
- */
- public function get($accountId, $buyerCreativeId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new google_Creative($data);
- } else {
- return $data;
- }
- }
- /**
- * Submit a new creative. (creatives.insert)
- *
- * @param google_Creative $postBody
- * @param array $optParams Optional parameters.
- * @return google_Creative
- */
- public function insert(google_Creative $postBody, $optParams = array()) {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new google_Creative($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves a list of the authenticated user's active creatives. (creatives.list)
- *
- * @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.
- * @return google_CreativesList
- */
- public function listCreatives($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new google_CreativesList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "directDeals" collection of methods.
- * Typical usage is:
- *
- * $adexchangebuyerService = new google_AdexchangebuyerService(...);
- * $directDeals = $adexchangebuyerService->directDeals;
- *
- */
- class google_DirectDealsServiceResource extends Google_ServiceResource {
-
-
- /**
- * Gets one direct deal by ID. (directDeals.get)
- *
- * @param string $id The direct deal id
- * @param array $optParams Optional parameters.
- * @return google_DirectDeal
- */
- public function get($id, $optParams = array()) {
- $params = array('id' => $id);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new google_DirectDeal($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves the authenticated user's list of direct deals. (directDeals.list)
- *
- * @param array $optParams Optional parameters.
- * @return google_DirectDealsList
- */
- public function listDirectDeals($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new google_DirectDealsList($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for google_Adexchangebuyer (v1.2).
- *
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $adclients = $adsenseService->adclients;
- *
- */
- class Google_AccountsAdclientsServiceResource extends Google_Service_Resource {
-
-
- /**
- * List all ad clients in the specified account. (adclients.list)
- *
- * @param string $accountId Account for which to list ad clients.
- * @param array $optParams Optional parameters.
- *
- * @opt_param int maxResults The maximum number of ad clients to include in the response, used for paging.
- * @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.
- * @return Google_AdClients
- */
- public function listAccountsAdclients($accountId, $optParams = array()) {
- $params = array('accountId' => $accountId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_AdClients($data);
- } else {
- return $data;
- }
- }
- }
- /**
- * The "adunits" collection of methods.
- * Typical usage is:
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $adunits = $adsenseService->adunits;
- *
- */
- class Google_AccountsAdunitsServiceResource 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_AdUnit
- */
- public function get($accountId, $adClientId, $adUnitId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_AdUnit($data);
- } else {
- return $data;
- }
- }
- /**
- * List all ad units in the specified ad client for the specified account. (adunits.list)
- *
- * @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 int maxResults The maximum number of ad units to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_AdUnits
- */
- public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_AdUnits($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "customchannels" collection of methods.
- * Typical usage is:
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $customchannels = $adsenseService->customchannels;
- *
- */
- class Google_AccountsAdunitsCustomchannelsServiceResource extends Google_Service_Resource {
-
-
- /**
- * List all custom channels which the specified ad unit belongs to. (customchannels.list)
- *
- * @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 int maxResults The maximum number of custom channels to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_CustomChannels
- */
- public function listAccountsAdunitsCustomchannels($accountId, $adClientId, $adUnitId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CustomChannels($data);
- } else {
- return $data;
- }
- }
- }
- /**
- * The "customchannels" collection of methods.
- * Typical usage is:
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $customchannels = $adsenseService->customchannels;
- *
- */
- class Google_AccountsCustomchannelsServiceResource 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_CustomChannel
- */
- public function get($accountId, $adClientId, $customChannelId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_CustomChannel($data);
- } else {
- return $data;
- }
- }
- /**
- * List all custom channels in the specified ad client for the specified account.
- * (customchannels.list)
- *
- * @param string $accountId Account to which the ad client belongs.
- * @param string $adClientId Ad client for which to list custom channels.
- * @param array $optParams Optional parameters.
- *
- * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_CustomChannels
- */
- public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CustomChannels($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "adunits" collection of methods.
- * Typical usage is:
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $adunits = $adsenseService->adunits;
- *
- */
- class Google_AccountsCustomchannelsAdunitsServiceResource extends Google_Service_Resource {
-
-
- /**
- * List all ad units in the specified custom channel. (adunits.list)
- *
- * @param string $accountId Account to which the ad client belongs.
- * @param string $adClientId Ad client which contains the custom channel.
- * @param string $customChannelId Custom channel for which to list ad units.
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
- * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_AdUnits
- */
- public function listAccountsCustomchannelsAdunits($accountId, $adClientId, $customChannelId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_AdUnits($data);
- } else {
- return $data;
- }
- }
- }
- /**
- * The "reports" collection of methods.
- * Typical usage is:
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $reports = $adsenseService->reports;
- *
- */
- class Google_AccountsReportsServiceResource 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 currency Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
- * @opt_param string dimension Dimensions to base the report on.
- * @opt_param string filter Filters to be run on the report.
- * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- * @opt_param int maxResults The maximum number of rows of report data to return.
- * @opt_param string metric Numeric columns to include in the report.
- * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
- * @opt_param int startIndex Index of the first row of report data to return.
- * @return Google_AdsenseReportsGenerateResponse
- */
- public function generate($accountId, $startDate, $endDate, $optParams = array()) {
- $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
- $params = array_merge($params, $optParams);
- $data = $this->__call('generate', array($params));
- if ($this->useObjects()) {
- return new Google_AdsenseReportsGenerateResponse($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "saved" collection of methods.
- * Typical usage is:
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $saved = $adsenseService->saved;
- *
- */
- class Google_AccountsReportsSavedServiceResource 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 maxResults The maximum number of rows of report data to return.
- * @opt_param int startIndex Index of the first row of report data to return.
- * @return Google_AdsenseReportsGenerateResponse
- */
- public function generate($accountId, $savedReportId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'savedReportId' => $savedReportId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('generate', array($params));
- if ($this->useObjects()) {
- return new Google_AdsenseReportsGenerateResponse($data);
- } else {
- return $data;
- }
- }
- /**
- * List all saved reports in the specified AdSense account. (saved.list)
- *
- * @param string $accountId Account to which the saved reports belong.
- * @param array $optParams Optional parameters.
- *
- * @opt_param int maxResults The maximum number of saved reports to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_SavedReports
- */
- public function listAccountsReportsSaved($accountId, $optParams = array()) {
- $params = array('accountId' => $accountId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SavedReports($data);
- } else {
- return $data;
- }
- }
- }
- /**
- * The "savedadstyles" collection of methods.
- * Typical usage is:
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $savedadstyles = $adsenseService->savedadstyles;
- *
- */
- class Google_AccountsSavedadstylesServiceResource 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_SavedAdStyle
- */
- public function get($accountId, $savedAdStyleId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'savedAdStyleId' => $savedAdStyleId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_SavedAdStyle($data);
- } else {
- return $data;
- }
- }
- /**
- * List all saved ad styles in the specified account. (savedadstyles.list)
- *
- * @param string $accountId Account for which to list saved ad styles.
- * @param array $optParams Optional parameters.
- *
- * @opt_param int maxResults The maximum number of saved ad styles to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_SavedAdStyles
- */
- public function listAccountsSavedadstyles($accountId, $optParams = array()) {
- $params = array('accountId' => $accountId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SavedAdStyles($data);
- } else {
- return $data;
- }
- }
- }
- /**
- * The "urlchannels" collection of methods.
- * Typical usage is:
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $urlchannels = $adsenseService->urlchannels;
- *
- */
- class Google_AccountsUrlchannelsServiceResource extends Google_Service_Resource {
-
-
- /**
- * List all URL channels in the specified ad client for the specified account. (urlchannels.list)
- *
- * @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 int maxResults The maximum number of URL channels to include in the response, used for paging.
- * @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.
- * @return Google_UrlChannels
- */
- public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_UrlChannels($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "adclients" collection of methods.
- * Typical usage is:
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $adclients = $adsenseService->adclients;
- *
- */
- class Google_AdclientsServiceResource extends Google_Service_Resource {
-
-
- /**
- * List all ad clients in this AdSense account. (adclients.list)
- *
- * @param array $optParams Optional parameters.
- *
- * @opt_param int maxResults The maximum number of ad clients to include in the response, used for paging.
- * @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.
- * @return Google_AdClients
- */
- public function listAdclients($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_AdClients($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "adunits" collection of methods.
- * Typical usage is:
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $adunits = $adsenseService->adunits;
- *
- */
- class Google_AdunitsServiceResource 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_AdUnit
- */
- public function get($adClientId, $adUnitId, $optParams = array()) {
- $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_AdUnit($data);
- } else {
- return $data;
- }
- }
- /**
- * List all ad units in the specified ad client for this AdSense account. (adunits.list)
- *
- * @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 int maxResults The maximum number of ad units to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_AdUnits
- */
- public function listAdunits($adClientId, $optParams = array()) {
- $params = array('adClientId' => $adClientId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_AdUnits($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "customchannels" collection of methods.
- * Typical usage is:
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $customchannels = $adsenseService->customchannels;
- *
- */
- class Google_AdunitsCustomchannelsServiceResource extends Google_Service_Resource {
-
-
- /**
- * List all custom channels which the specified ad unit belongs to. (customchannels.list)
- *
- * @param string $adClientId Ad client which contains the ad unit.
- * @param string $adUnitId Ad unit for which to list custom channels.
- * @param array $optParams Optional parameters.
- *
- * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_CustomChannels
- */
- public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) {
- $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CustomChannels($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "customchannels" collection of methods.
- * Typical usage is:
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $customchannels = $adsenseService->customchannels;
- *
- */
- class Google_CustomchannelsServiceResource 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_CustomChannel
- */
- public function get($adClientId, $customChannelId, $optParams = array()) {
- $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_CustomChannel($data);
- } else {
- return $data;
- }
- }
- /**
- * List all custom channels in the specified ad client for this AdSense account.
- * (customchannels.list)
- *
- * @param string $adClientId Ad client for which to list custom channels.
- * @param array $optParams Optional parameters.
- *
- * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_CustomChannels
- */
- public function listCustomchannels($adClientId, $optParams = array()) {
- $params = array('adClientId' => $adClientId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CustomChannels($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "adunits" collection of methods.
- * Typical usage is:
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $adunits = $adsenseService->adunits;
- *
- */
- class Google_CustomchannelsAdunitsServiceResource extends Google_Service_Resource {
-
-
- /**
- * List all ad units in the specified custom channel. (adunits.list)
- *
- * @param string $adClientId Ad client which contains the custom channel.
- * @param string $customChannelId Custom channel for which to list ad units.
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
- * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_AdUnits
- */
- public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) {
- $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_AdUnits($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "reports" collection of methods.
- * Typical usage is:
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $reports = $adsenseService->reports;
- *
- */
- class Google_ReportsServiceResource 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 accountId Accounts upon which to report.
- * @opt_param string currency Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
- * @opt_param string dimension Dimensions to base the report on.
- * @opt_param string filter Filters to be run on the report.
- * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- * @opt_param int maxResults The maximum number of rows of report data to return.
- * @opt_param string metric Numeric columns to include in the report.
- * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
- * @opt_param int startIndex Index of the first row of report data to return.
- * @return Google_AdsenseReportsGenerateResponse
- */
- public function generate($startDate, $endDate, $optParams = array()) {
- $params = array('startDate' => $startDate, 'endDate' => $endDate);
- $params = array_merge($params, $optParams);
- $data = $this->__call('generate', array($params));
- if ($this->useObjects()) {
- return new Google_AdsenseReportsGenerateResponse($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "saved" collection of methods.
- * Typical usage is:
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $saved = $adsenseService->saved;
- *
- */
- class Google_ReportsSavedServiceResource 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 maxResults The maximum number of rows of report data to return.
- * @opt_param int startIndex Index of the first row of report data to return.
- * @return Google_AdsenseReportsGenerateResponse
- */
- public function generate($savedReportId, $optParams = array()) {
- $params = array('savedReportId' => $savedReportId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('generate', array($params));
- if ($this->useObjects()) {
- return new Google_AdsenseReportsGenerateResponse($data);
- } else {
- return $data;
- }
- }
- /**
- * List all saved reports in this AdSense account. (saved.list)
- *
- * @param array $optParams Optional parameters.
- *
- * @opt_param int maxResults The maximum number of saved reports to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_SavedReports
- */
- public function listReportsSaved($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SavedReports($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "savedadstyles" collection of methods.
- * Typical usage is:
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $savedadstyles = $adsenseService->savedadstyles;
- *
- */
- class Google_SavedadstylesServiceResource 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_SavedAdStyle
- */
- public function get($savedAdStyleId, $optParams = array()) {
- $params = array('savedAdStyleId' => $savedAdStyleId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_SavedAdStyle($data);
- } else {
- return $data;
- }
- }
- /**
- * List all saved ad styles in the user's account. (savedadstyles.list)
- *
- * @param array $optParams Optional parameters.
- *
- * @opt_param int maxResults The maximum number of saved ad styles to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_SavedAdStyles
- */
- public function listSavedadstyles($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SavedAdStyles($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "urlchannels" collection of methods.
- * Typical usage is:
- *
- * $adsenseService = new Google_AdSenseService(...);
- * $urlchannels = $adsenseService->urlchannels;
- *
- */
- class Google_UrlchannelsServiceResource extends Google_Service_Resource {
-
-
- /**
- * List all URL channels in the specified ad client for this AdSense account. (urlchannels.list)
- *
- * @param string $adClientId Ad client for which to list URL channels.
- * @param array $optParams Optional parameters.
- *
- * @opt_param int maxResults The maximum number of URL channels to include in the response, used for paging.
- * @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.
- * @return Google_UrlChannels
- */
- public function listUrlchannels($adClientId, $optParams = array()) {
- $params = array('adClientId' => $adClientId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_UrlChannels($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for Google_AdSense (v1.2).
- *
- *
- * $adsensehostService = new Google_AdSenseHostService(...);
- * $adclients = $adsensehostService->adclients;
- *
- */
- class Google_AccountsAdclientsServiceResource 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_AdClient
- */
- public function get($accountId, $adClientId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_AdClient($data);
- } else {
- return $data;
- }
- }
- /**
- * List all hosted ad clients in the specified hosted account. (adclients.list)
- *
- * @param string $accountId Account for which to list ad clients.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
- * @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.
- * @return Google_AdClients
- */
- public function listAccountsAdclients($accountId, $optParams = array()) {
- $params = array('accountId' => $accountId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_AdClients($data);
- } else {
- return $data;
- }
- }
- }
- /**
- * The "adunits" collection of methods.
- * Typical usage is:
- *
- * $adsensehostService = new Google_AdSenseHostService(...);
- * $adunits = $adsensehostService->adunits;
- *
- */
- class Google_AccountsAdunitsServiceResource 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_AdUnit
- */
- public function delete($accountId, $adClientId, $adUnitId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- if ($this->useObjects()) {
- return new Google_AdUnit($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_AdUnit
- */
- public function get($accountId, $adClientId, $adUnitId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_AdUnit($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_AdCode
- */
- public function getAdCode($accountId, $adClientId, $adUnitId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('getAdCode', array($params));
- if ($this->useObjects()) {
- return new Google_AdCode($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_AdUnit
- */
- public function insert($accountId, $adClientId, Google_AdUnit $postBody, $optParams = array()) {
- $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_AdUnit($data);
- } else {
- return $data;
- }
- }
- /**
- * List all ad units in the specified publisher's AdSense account. (adunits.list)
- *
- * @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 maxResults The maximum number of ad units to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_AdUnits
- */
- public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_AdUnits($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_AdUnit
- */
- public function patch($accountId, $adClientId, $adUnitId, Google_AdUnit $postBody, $optParams = array()) {
- $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_AdUnit($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_AdUnit
- */
- public function update($accountId, $adClientId, Google_AdUnit $postBody, $optParams = array()) {
- $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_AdUnit($data);
- } else {
- return $data;
- }
- }
- }
- /**
- * The "reports" collection of methods.
- * Typical usage is:
- *
- * $adsensehostService = new Google_AdSenseHostService(...);
- * $reports = $adsensehostService->reports;
- *
- */
- class Google_AccountsReportsServiceResource 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 dimension Dimensions to base the report on.
- * @opt_param string filter Filters to be run on the report.
- * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- * @opt_param string maxResults The maximum number of rows of report data to return.
- * @opt_param string metric Numeric columns to include in the report.
- * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
- * @opt_param string startIndex Index of the first row of report data to return.
- * @return Google_Report
- */
- public function generate($accountId, $startDate, $endDate, $optParams = array()) {
- $params = array('accountId' => $accountId, 'startDate' => $startDate, 'endDate' => $endDate);
- $params = array_merge($params, $optParams);
- $data = $this->__call('generate', array($params));
- if ($this->useObjects()) {
- return new Google_Report($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "adclients" collection of methods.
- * Typical usage is:
- *
- * $adsensehostService = new Google_AdSenseHostService(...);
- * $adclients = $adsensehostService->adclients;
- *
- */
- class Google_AdclientsServiceResource 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_AdClient
- */
- public function get($adClientId, $optParams = array()) {
- $params = array('adClientId' => $adClientId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_AdClient($data);
- } else {
- return $data;
- }
- }
- /**
- * List all host ad clients in this AdSense account. (adclients.list)
- *
- * @param array $optParams Optional parameters.
- *
- * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
- * @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.
- * @return Google_AdClients
- */
- public function listAdclients($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_AdClients($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "associationsessions" collection of methods.
- * Typical usage is:
- *
- * $adsensehostService = new Google_AdSenseHostService(...);
- * $associationsessions = $adsensehostService->associationsessions;
- *
- */
- class Google_AssociationsessionsServiceResource 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 userLocale The preferred locale of the user.
- * @opt_param string websiteLocale The locale of the user's hosted website.
- * @return Google_AssociationSession
- */
- public function start($productCode, $websiteUrl, $optParams = array()) {
- $params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl);
- $params = array_merge($params, $optParams);
- $data = $this->__call('start', array($params));
- if ($this->useObjects()) {
- return new Google_AssociationSession($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_AssociationSession
- */
- public function verify($token, $optParams = array()) {
- $params = array('token' => $token);
- $params = array_merge($params, $optParams);
- $data = $this->__call('verify', array($params));
- if ($this->useObjects()) {
- return new Google_AssociationSession($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "customchannels" collection of methods.
- * Typical usage is:
- *
- * $adsensehostService = new Google_AdSenseHostService(...);
- * $customchannels = $adsensehostService->customchannels;
- *
- */
- class Google_CustomchannelsServiceResource 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_CustomChannel
- */
- public function delete($adClientId, $customChannelId, $optParams = array()) {
- $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- if ($this->useObjects()) {
- return new Google_CustomChannel($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_CustomChannel
- */
- public function get($adClientId, $customChannelId, $optParams = array()) {
- $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_CustomChannel($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_CustomChannel
- */
- public function insert($adClientId, Google_CustomChannel $postBody, $optParams = array()) {
- $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_CustomChannel($data);
- } else {
- return $data;
- }
- }
- /**
- * List all host custom channels in this AdSense account. (customchannels.list)
- *
- * @param string $adClientId Ad client for which to list custom channels.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string maxResults The maximum number of custom channels to include in the response, used for paging.
- * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- * @return Google_CustomChannels
- */
- public function listCustomchannels($adClientId, $optParams = array()) {
- $params = array('adClientId' => $adClientId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CustomChannels($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_CustomChannel
- */
- public function patch($adClientId, $customChannelId, Google_CustomChannel $postBody, $optParams = array()) {
- $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_CustomChannel($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_CustomChannel
- */
- public function update($adClientId, Google_CustomChannel $postBody, $optParams = array()) {
- $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_CustomChannel($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "reports" collection of methods.
- * Typical usage is:
- *
- * $adsensehostService = new Google_AdSenseHostService(...);
- * $reports = $adsensehostService->reports;
- *
- */
- class Google_ReportsServiceResource 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 dimension Dimensions to base the report on.
- * @opt_param string filter Filters to be run on the report.
- * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- * @opt_param string maxResults The maximum number of rows of report data to return.
- * @opt_param string metric Numeric columns to include in the report.
- * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
- * @opt_param string startIndex Index of the first row of report data to return.
- * @return Google_Report
- */
- public function generate($startDate, $endDate, $optParams = array()) {
- $params = array('startDate' => $startDate, 'endDate' => $endDate);
- $params = array_merge($params, $optParams);
- $data = $this->__call('generate', array($params));
- if ($this->useObjects()) {
- return new Google_Report($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "urlchannels" collection of methods.
- * Typical usage is:
- *
- * $adsensehostService = new Google_AdSenseHostService(...);
- * $urlchannels = $adsensehostService->urlchannels;
- *
- */
- class Google_UrlchannelsServiceResource 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_UrlChannel
- */
- public function delete($adClientId, $urlChannelId, $optParams = array()) {
- $params = array('adClientId' => $adClientId, 'urlChannelId' => $urlChannelId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- if ($this->useObjects()) {
- return new Google_UrlChannel($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_UrlChannel
- */
- public function insert($adClientId, Google_UrlChannel $postBody, $optParams = array()) {
- $params = array('adClientId' => $adClientId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_UrlChannel($data);
- } else {
- return $data;
- }
- }
- /**
- * List all host URL channels in the host AdSense account. (urlchannels.list)
- *
- * @param string $adClientId Ad client for which to list URL channels.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string maxResults The maximum number of URL channels to include in the response, used for paging.
- * @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.
- * @return Google_UrlChannels
- */
- public function listUrlchannels($adClientId, $optParams = array()) {
- $params = array('adClientId' => $adClientId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_UrlChannels($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for Google_AdSenseHost (v4.1).
- *
- *
- * $analyticsService = new Google_AnalyticsService(...);
- * $dailyUploads = $analyticsService->dailyUploads;
- *
- */
- class Google_ManagementDailyUploadsServiceResource extends Google_Service_Resource {
-
-
- /**
- * List daily uploads to which the user has access. (dailyUploads.list)
- *
- * @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 $start_date Start date of the form YYYY-MM-DD.
- * @param string $end_date 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_DailyUploads
- */
- public function listManagementDailyUploads($accountId, $webPropertyId, $customDataSourceId, $start_date, $end_date, $optParams = array()) {
- $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $start_date, 'end-date' => $end_date);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_DailyUploads($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_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);
- $data = $this->__call('upload', array($params));
- if ($this->useObjects()) {
- return new Google_DailyUploadAppend($data);
- } else {
- return $data;
- }
- }
- /**
- * Delete uploaded data for the given date. (dailyUploads.delete)
- *
- * @param string $accountId Account Id associated with daily upload delete.
- * @param string $webPropertyId Web property Id associated with daily upload delete.
- * @param string $customDataSourceId Custom data source Id associated with daily upload delete.
- * @param string $date Date for which data is to be deleted. Date should be formatted as YYYY-MM-DD.
- * @param string $type Type of data for this delete.
- * @param array $optParams Optional parameters.
- */
- public function delete($accountId, $webPropertyId, $customDataSourceId, $date, $type, $optParams = array()) {
- $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'date' => $date, 'type' => $type);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
- /**
- * The "segments" collection of methods.
- * Typical usage is:
- *
- * $analyticsService = new Google_AnalyticsService(...);
- * $segments = $analyticsService->segments;
- *
- */
- class Google_ManagementSegmentsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Lists advanced segments to which the user has access. (segments.list)
- *
- * @param array $optParams Optional parameters.
- *
- * @opt_param int max-results The maximum number of advanced segments to include in this response.
- * @opt_param int start-index An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
- * @return Google_Segments
- */
- public function listManagementSegments($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Segments($data);
- } else {
- return $data;
- }
- }
- }
- /**
- * The "profiles" collection of methods.
- * Typical usage is:
- *
- * $analyticsService = new Google_AnalyticsService(...);
- * $profiles = $analyticsService->profiles;
- *
- */
- class Google_ManagementProfilesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Lists profiles to which the user has access. (profiles.list)
- *
- * @param string $accountId Account ID for the profiles to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.
- * @param string $webPropertyId Web property ID for the profiles to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.
- * @param array $optParams Optional parameters.
- *
- * @opt_param int max-results The maximum number of 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_Profiles
- */
- public function listManagementProfiles($accountId, $webPropertyId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Profiles($data);
- } else {
- return $data;
- }
- }
- }
- /**
- * The "customDataSources" collection of methods.
- * Typical usage is:
- *
- * $analyticsService = new Google_AnalyticsService(...);
- * $customDataSources = $analyticsService->customDataSources;
- *
- */
- class Google_ManagementCustomDataSourcesServiceResource extends Google_Service_Resource {
-
-
- /**
- * List custom data sources to which the user has access. (customDataSources.list)
- *
- * @param string $accountId Account Id for the custom data sources to retrieve.
- * @param string $webPropertyId Web property Id for the custom data sources to retrieve.
- * @param array $optParams Optional parameters.
- *
- * @opt_param int max-results The maximum number of custom data sources to include in this response.
- * @opt_param int start-index A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
- * @return Google_CustomDataSources
- */
- public function listManagementCustomDataSources($accountId, $webPropertyId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CustomDataSources($data);
- } else {
- return $data;
- }
- }
- }
- /**
- * The "goals" collection of methods.
- * Typical usage is:
- *
- * $analyticsService = new Google_AnalyticsService(...);
- * $goals = $analyticsService->goals;
- *
- */
- class Google_ManagementGoalsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Lists goals to which the user has access. (goals.list)
- *
- * @param string $accountId Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
- * @param string $webPropertyId Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.
- * @param string $profileId Profile ID to retrieve goals for. Can either be a specific profile ID or '~all', which refers to all the profiles that user has access to.
- * @param array $optParams Optional parameters.
- *
- * @opt_param int max-results The maximum number of goals to include in this response.
- * @opt_param int start-index An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
- * @return Google_Goals
- */
- public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array()) {
- $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Goals($data);
- } else {
- return $data;
- }
- }
- }
- /**
- * The "accounts" collection of methods.
- * Typical usage is:
- *
- * $analyticsService = new Google_AnalyticsService(...);
- * $accounts = $analyticsService->accounts;
- *
- */
- class Google_ManagementAccountsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Lists all accounts to which the user has access. (accounts.list)
- *
- * @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_Accounts
- */
- public function listManagementAccounts($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Accounts($data);
- } else {
- return $data;
- }
- }
- }
- /**
- * The "webproperties" collection of methods.
- * Typical usage is:
- *
- * $analyticsService = new Google_AnalyticsService(...);
- * $webproperties = $analyticsService->webproperties;
- *
- */
- class Google_ManagementWebpropertiesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Lists web properties to which the user has access. (webproperties.list)
- *
- * @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_Webproperties
- */
- public function listManagementWebproperties($accountId, $optParams = array()) {
- $params = array('accountId' => $accountId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Webproperties($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "data" collection of methods.
- * Typical usage is:
- *
- * $analyticsService = new Google_AnalyticsService(...);
- * $data = $analyticsService->data;
- *
- */
- class Google_DataServiceResource extends Google_Service_Resource {
-
-
- }
-
- /**
- * The "mcf" collection of methods.
- * Typical usage is:
- *
- * $analyticsService = new Google_AnalyticsService(...);
- * $mcf = $analyticsService->mcf;
- *
- */
- class Google_DataMcfServiceResource extends Google_Service_Resource {
-
-
- /**
- * Returns Analytics Multi-Channel Funnels data for a profile. (mcf.get)
- *
- * @param string $ids Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics profile ID.
- * @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
- * @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
- * @param string $metrics A comma-separated list of Multi-Channel Funnels metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified.
- * @param array $optParams Optional parameters.
- *
- * @opt_param 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 filters A comma-separated list of dimension or metric filters to be applied to the Analytics data.
- * @return Google_McfData
- */
- public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
- $params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_McfData($data);
- } else {
- return $data;
- }
- }
- }
- /**
- * The "ga" collection of methods.
- * Typical usage is:
- *
- * $analyticsService = new Google_AnalyticsService(...);
- * $ga = $analyticsService->ga;
- *
- */
- class Google_DataGaServiceResource extends Google_Service_Resource {
-
-
- /**
- * Returns Analytics data for a 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 profile ID.
- * @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
- * @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
- * @param string $metrics A comma-separated list of Analytics metrics. E.g., 'ga:visits,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 advanced segment to be applied to data.
- * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to Analytics data.
- * @return Google_GaData
- */
- public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
- $params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_GaData($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for Google_Analytics (v3).
- *
- *
- * $bigqueryService = new Google_BigqueryService(...);
- * $datasets = $bigqueryService->datasets;
- *
- */
- class Google_DatasetsServiceResource extends Google_Service_Resource {
-
-
- /**
- * 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_Dataset
- */
- public function insert($projectId, Google_Dataset $postBody, $optParams = array()) {
- $params = array('projectId' => $projectId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Dataset($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Dataset
- */
- public function get($projectId, $datasetId, $optParams = array()) {
- $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Dataset($data);
- } else {
- return $data;
- }
- }
- /**
- * 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.list)
- *
- * @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 string maxResults The maximum number of results to return
- * @return Google_DatasetList
- */
- public function listDatasets($projectId, $optParams = array()) {
- $params = array('projectId' => $projectId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_DatasetList($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates information in an existing dataset, specified by datasetId. Properties not included in
- * the submitted resource will not be changed. If you include the access property without any values
- * assigned, the request will fail as you must specify at least one owner for a dataset.
- * (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_Dataset
- */
- public function update($projectId, $datasetId, Google_Dataset $postBody, $optParams = array()) {
- $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Dataset($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates information in an existing dataset, specified by datasetId. Properties not included in
- * the submitted resource will not be changed. If you include the access property without any values
- * assigned, the request will fail as you must specify at least one owner for a dataset. 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_Dataset
- */
- public function patch($projectId, $datasetId, Google_Dataset $postBody, $optParams = array()) {
- $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Dataset($data);
- } else {
- return $data;
- }
- }
- /**
- * Deletes the dataset specified by 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
- /**
- * The "jobs" collection of methods.
- * Typical usage is:
- *
- * $bigqueryService = new Google_BigqueryService(...);
- * $jobs = $bigqueryService->jobs;
- *
- */
- class Google_JobsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Starts a new asynchronous job. (jobs.insert)
- *
- * @param string $projectId Project ID of the project that will be billed for the job
- * @param Google_Job $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Job
- */
- public function insert($projectId, Google_Job $postBody, $optParams = array()) {
- $params = array('projectId' => $projectId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Job($data);
- } else {
- return $data;
- }
- }
- /**
- * Runs a BigQuery SQL query synchronously and returns query results if the query completes within a
- * specified timeout. (jobs.query)
- *
- * @param string $projectId Project ID of the project billed for the query
- * @param Google_QueryRequest $postBody
- * @param array $optParams Optional parameters.
- * @return Google_QueryResponse
- */
- public function query($projectId, Google_QueryRequest $postBody, $optParams = array()) {
- $params = array('projectId' => $projectId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('query', array($params));
- if ($this->useObjects()) {
- return new Google_QueryResponse($data);
- } else {
- return $data;
- }
- }
- /**
- * Lists all the Jobs in the specified project that were started by the user. (jobs.list)
- *
- * @param string $projectId Project ID of the jobs to list
- * @param array $optParams Optional parameters.
- *
- * @opt_param 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_JobList
- */
- public function listJobs($projectId, $optParams = array()) {
- $params = array('projectId' => $projectId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_JobList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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 startIndex Zero-based index of the starting row
- * @opt_param string maxResults Maximum number of results to read
- * @return Google_GetQueryResultsResponse
- */
- public function getQueryResults($projectId, $jobId, $optParams = array()) {
- $params = array('projectId' => $projectId, 'jobId' => $jobId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('getQueryResults', array($params));
- if ($this->useObjects()) {
- return new Google_GetQueryResultsResponse($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Job
- */
- public function get($projectId, $jobId, $optParams = array()) {
- $params = array('projectId' => $projectId, 'jobId' => $jobId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Job($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "tabledata" collection of methods.
- * Typical usage is:
- *
- * $bigqueryService = new Google_BigqueryService(...);
- * $tabledata = $bigqueryService->tabledata;
- *
- */
- class Google_TabledataServiceResource extends Google_Service_Resource {
-
-
- /**
- * Retrieves table data from a specified set of rows. (tabledata.list)
- *
- * @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_TableDataList
- */
- public function listTabledata($projectId, $datasetId, $tableId, $optParams = array()) {
- $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_TableDataList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "projects" collection of methods.
- * Typical usage is:
- *
- * $bigqueryService = new Google_BigqueryService(...);
- * $projects = $bigqueryService->projects;
- *
- */
- class Google_ProjectsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Lists the projects to which you have at least read access. (projects.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_ProjectList
- */
- public function listProjects($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_ProjectList($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for Google_Bigquery (v2).
- *
- *
- * $bloggerService = new Google_BloggerService(...);
- * $posts = $bloggerService->posts;
- *
- */
- class Google_PostsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Add a post. (posts.insert)
- *
- * @param string $blogId ID of the blog to fetch the post from.
- * @param Google_Post $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Post
- */
- public function insert($blogId, Google_Post $postBody, $optParams = array()) {
- $params = array('blogId' => $blogId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Post($data);
- } else {
- return $data;
- }
- }
- /**
- * Search for a post. (posts.search)
- *
- * @param string $blogId ID of the blog to fetch the post from.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string q Query terms to search this blog for matching posts.
- * @return Google_PostList
- */
- public function search($blogId, $optParams = array()) {
- $params = array('blogId' => $blogId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('search', array($params));
- if ($this->useObjects()) {
- return new Google_PostList($data);
- } else {
- return $data;
- }
- }
- /**
- * Get a post by id. (posts.get)
- *
- * @param string $blogId ID of the blog to fetch the post from.
- * @param string $postId The ID of the post
- * @param array $optParams Optional parameters.
- *
- * @opt_param string maxComments Maximum number of comments to pull back on a post.
- * @return Google_Post
- */
- public function get($blogId, $postId, $optParams = array()) {
- $params = array('blogId' => $blogId, 'postId' => $postId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Post($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves a list of posts, possibly filtered. (posts.list)
- *
- * @param string $blogId ID of the blog to fetch posts from.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string 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 bool fetchBodies Whether the body content of posts is included.
- * @return Google_PostList
- */
- public function listPosts($blogId, $optParams = array()) {
- $params = array('blogId' => $blogId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_PostList($data);
- } else {
- return $data;
- }
- }
- /**
- * Update a post. (posts.update)
- *
- * @param string $blogId The ID of the Blog.
- * @param string $postId The ID of the Post.
- * @param Google_Post $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Post
- */
- public function update($blogId, $postId, Google_Post $postBody, $optParams = array()) {
- $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Post($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieve a Post by Path. (posts.getByPath)
- *
- * @param string $blogId ID of the blog to fetch the post from.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string path Path of the Post to retrieve.
- * @opt_param string maxComments Maximum number of comments to pull back on a post.
- * @return Google_Post
- */
- public function getByPath($blogId, $optParams = array()) {
- $params = array('blogId' => $blogId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('getByPath', array($params));
- if ($this->useObjects()) {
- return new Google_Post($data);
- } else {
- return $data;
- }
- }
- /**
- * 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.
- * @return Google_Post
- */
- public function patch($blogId, $postId, Google_Post $postBody, $optParams = array()) {
- $params = array('blogId' => $blogId, 'postId' => $postId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Post($data);
- } else {
- return $data;
- }
- }
- /**
- * Delete a post by id. (posts.delete)
- *
- * @param string $blogId The Id of the Blog.
- * @param string $postId The ID of the Post.
- * @param array $optParams Optional parameters.
- */
- public function delete($blogId, $postId, $optParams = array()) {
- $params = array('blogId' => $blogId, 'postId' => $postId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
- /**
- * The "pages" collection of methods.
- * Typical usage is:
- *
- * $bloggerService = new Google_BloggerService(...);
- * $pages = $bloggerService->pages;
- *
- */
- class Google_PagesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Retrieves pages for a blog, possibly filtered. (pages.list)
- *
- * @param string $blogId ID of the blog to fetch pages from.
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool fetchBodies Whether to retrieve the Page bodies.
- * @return Google_PageList
- */
- public function listPages($blogId, $optParams = array()) {
- $params = array('blogId' => $blogId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_PageList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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.
- * @return Google_Page
- */
- public function get($blogId, $pageId, $optParams = array()) {
- $params = array('blogId' => $blogId, 'pageId' => $pageId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Page($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "comments" collection of methods.
- * Typical usage is:
- *
- * $bloggerService = new Google_BloggerService(...);
- * $comments = $bloggerService->comments;
- *
- */
- class Google_CommentsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Retrieves the comments for a blog, possibly filtered. (comments.list)
- *
- * @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 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_CommentList
- */
- public function listComments($blogId, $postId, $optParams = array()) {
- $params = array('blogId' => $blogId, 'postId' => $postId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CommentList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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.
- * @return Google_Comment
- */
- public function get($blogId, $postId, $commentId, $optParams = array()) {
- $params = array('blogId' => $blogId, 'postId' => $postId, 'commentId' => $commentId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Comment($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "users" collection of methods.
- * Typical usage is:
- *
- * $bloggerService = new Google_BloggerService(...);
- * $users = $bloggerService->users;
- *
- */
- class Google_UsersServiceResource 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_User
- */
- public function get($userId, $optParams = array()) {
- $params = array('userId' => $userId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_User($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for Google_Blogger (v3).
- *
- *
- * $booksService = new Google_BooksService(...);
- * $annotationData = $booksService->annotationData;
- *
- */
- class Google_LayersAnnotationDataServiceResource extends Google_Service_Resource {
-
-
- /**
- * Gets the annotation data for a volume and layer. (annotationData.list)
- *
- * @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_Annotationsdata
- */
- public function listLayersAnnotationData($volumeId, $layerId, $contentVersion, $optParams = array()) {
- $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Annotationsdata($data);
- } else {
- return $data;
- }
- }
- /**
- * 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 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 source String to identify the originator of this request.
- * @opt_param int w The requested pixel width for any images. If width is provided height must also be provided.
- * @return Google_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);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Annotationdata($data);
- } else {
- return $data;
- }
- }
- }
- /**
- * The "volumeAnnotations" collection of methods.
- * Typical usage is:
- *
- * $booksService = new Google_BooksService(...);
- * $volumeAnnotations = $booksService->volumeAnnotations;
- *
- */
- class Google_LayersVolumeAnnotationsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Gets the volume annotations for a volume and layer. (volumeAnnotations.list)
- *
- * @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 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_Volumeannotations
- */
- public function listLayersVolumeAnnotations($volumeId, $layerId, $contentVersion, $optParams = array()) {
- $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Volumeannotations($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Volumeannotation
- */
- public function get($volumeId, $layerId, $annotationId, $optParams = array()) {
- $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationId' => $annotationId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Volumeannotation($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "bookshelves" collection of methods.
- * Typical usage is:
- *
- * $booksService = new Google_BooksService(...);
- * $bookshelves = $booksService->bookshelves;
- *
- */
- class Google_BookshelvesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Retrieves a list of public bookshelves for the specified user. (bookshelves.list)
- *
- * @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_Bookshelves
- */
- public function listBookshelves($userId, $optParams = array()) {
- $params = array('userId' => $userId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Bookshelves($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Bookshelf
- */
- public function get($userId, $shelf, $optParams = array()) {
- $params = array('userId' => $userId, 'shelf' => $shelf);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Bookshelf($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "volumes" collection of methods.
- * Typical usage is:
- *
- * $booksService = new Google_BooksService(...);
- * $volumes = $booksService->volumes;
- *
- */
- class Google_BookshelvesVolumesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Retrieves volumes in a specific bookshelf for the specified user. (volumes.list)
- *
- * @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_Volumes
- */
- public function listBookshelvesVolumes($userId, $shelf, $optParams = array()) {
- $params = array('userId' => $userId, 'shelf' => $shelf);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Volumes($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "myconfig" collection of methods.
- * Typical usage is:
- *
- * $booksService = new Google_BooksService(...);
- * $myconfig = $booksService->myconfig;
- *
- */
- class Google_MyconfigServiceResource 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_DownloadAccesses
- */
- public function releaseDownloadAccess($volumeIds, $cpksver, $optParams = array()) {
- $params = array('volumeIds' => $volumeIds, 'cpksver' => $cpksver);
- $params = array_merge($params, $optParams);
- $data = $this->__call('releaseDownloadAccess', array($params));
- if ($this->useObjects()) {
- return new Google_DownloadAccesses($data);
- } else {
- return $data;
- }
- }
- /**
- * 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 locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
- * @return Google_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);
- $data = $this->__call('requestAccess', array($params));
- if ($this->useObjects()) {
- return new Google_RequestAccess($data);
- } else {
- return $data;
- }
- }
- /**
- * 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 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_Volumes
- */
- public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array()) {
- $params = array('source' => $source, 'nonce' => $nonce, 'cpksver' => $cpksver);
- $params = array_merge($params, $optParams);
- $data = $this->__call('syncVolumeLicenses', array($params));
- if ($this->useObjects()) {
- return new Google_Volumes($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "volumes" collection of methods.
- * Typical usage is:
- *
- * $booksService = new Google_BooksService(...);
- * $volumes = $booksService->volumes;
- *
- */
- class Google_VolumesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Performs a book search. (volumes.list)
- *
- * @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_Volumes
- */
- public function listVolumes($q, $optParams = array()) {
- $params = array('q' => $q);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Volumes($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Volume
- */
- public function get($volumeId, $optParams = array()) {
- $params = array('volumeId' => $volumeId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Volume($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "associated" collection of methods.
- * Typical usage is:
- *
- * $booksService = new Google_BooksService(...);
- * $associated = $booksService->associated;
- *
- */
- class Google_VolumesAssociatedServiceResource extends Google_Service_Resource {
-
-
- /**
- * Return a list of associated books. (associated.list)
- *
- * @param string $volumeId ID of the source volume.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string projection Restrict information returned to a set of selected fields.
- * @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 association Association type.
- * @return Google_Volumes
- */
- public function listVolumesAssociated($volumeId, $optParams = array()) {
- $params = array('volumeId' => $volumeId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Volumes($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "mylibrary" collection of methods.
- * Typical usage is:
- *
- * $booksService = new Google_BooksService(...);
- * $mylibrary = $booksService->mylibrary;
- *
- */
- class Google_MylibraryServiceResource extends Google_Service_Resource {
-
-
- }
-
- /**
- * The "bookshelves" collection of methods.
- * Typical usage is:
- *
- * $booksService = new Google_BooksService(...);
- * $bookshelves = $booksService->bookshelves;
- *
- */
- class Google_MylibraryBookshelvesServiceResource extends Google_Service_Resource {
-
-
- /**
- * 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);
- $data = $this->__call('removeVolume', array($params));
- return $data;
- }
- /**
- * 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_Bookshelf
- */
- public function get($shelf, $optParams = array()) {
- $params = array('shelf' => $shelf);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Bookshelf($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('clearVolumes', array($params));
- return $data;
- }
- /**
- * Retrieves a list of bookshelves belonging to the authenticated user. (bookshelves.list)
- *
- * @param array $optParams Optional parameters.
- *
- * @opt_param string source String to identify the originator of this request.
- * @return Google_Bookshelves
- */
- public function listMylibraryBookshelves($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Bookshelves($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('addVolume', array($params));
- return $data;
- }
- /**
- * 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);
- $data = $this->__call('moveVolume', array($params));
- return $data;
- }
- }
-
- /**
- * The "volumes" collection of methods.
- * Typical usage is:
- *
- * $booksService = new Google_BooksService(...);
- * $volumes = $booksService->volumes;
- *
- */
- class Google_MylibraryBookshelvesVolumesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Gets volume information for volumes on a bookshelf. (volumes.list)
- *
- * @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_Volumes
- */
- public function listMylibraryBookshelvesVolumes($shelf, $optParams = array()) {
- $params = array('shelf' => $shelf);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Volumes($data);
- } else {
- return $data;
- }
- }
- }
- /**
- * The "readingpositions" collection of methods.
- * Typical usage is:
- *
- * $booksService = new Google_BooksService(...);
- * $readingpositions = $booksService->readingpositions;
- *
- */
- class Google_MylibraryReadingpositionsServiceResource extends Google_Service_Resource {
-
-
- /**
- * 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 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);
- $data = $this->__call('setPosition', array($params));
- return $data;
- }
- /**
- * 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_ReadingPosition
- */
- public function get($volumeId, $optParams = array()) {
- $params = array('volumeId' => $volumeId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_ReadingPosition($data);
- } else {
- return $data;
- }
- }
- }
- /**
- * The "annotations" collection of methods.
- * Typical usage is:
- *
- * $booksService = new Google_BooksService(...);
- * $annotations = $booksService->annotations;
- *
- */
- class Google_MylibraryAnnotationsServiceResource extends Google_Service_Resource {
-
-
- /**
- * 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.
- * @return Google_Annotation
- */
- public function insert(Google_Annotation $postBody, $optParams = array()) {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Annotation($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Annotation
- */
- public function get($annotationId, $optParams = array()) {
- $params = array('annotationId' => $annotationId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Annotation($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves a list of annotations, possibly filtered. (annotations.list)
- *
- * @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 updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
- * @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.
- * @return Google_Annotations
- */
- public function listMylibraryAnnotations($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Annotations($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Annotation
- */
- public function update($annotationId, Google_Annotation $postBody, $optParams = array()) {
- $params = array('annotationId' => $annotationId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Annotation($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
-/**
- * Service definition for Google_Books (v1).
- *
- *
- * $calendarService = new Google_CalendarService(...);
- * $settings = $calendarService->settings;
- *
- */
- class Google_SettingsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Returns all user settings for the authenticated user. (settings.list)
- *
- * @param array $optParams Optional parameters.
- * @return Google_Settings
- */
- public function listSettings($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Settings($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns a single user setting. (settings.get)
- *
- * @param string $setting Name of the user setting.
- * @param array $optParams Optional parameters.
- * @return Google_Setting
- */
- public function get($setting, $optParams = array()) {
- $params = array('setting' => $setting);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Setting($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "calendarList" collection of methods.
- * Typical usage is:
- *
- * $calendarService = new Google_CalendarService(...);
- * $calendarList = $calendarService->calendarList;
- *
- */
- class Google_CalendarListServiceResource extends Google_Service_Resource {
-
-
- /**
- * 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 'frontendColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'color' field will be set to the best matching option automatically. Optional. The default is False.
- * @return Google_CalendarListEntry
- */
- public function insert(Google_CalendarListEntry $postBody, $optParams = array()) {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_CalendarListEntry($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns an entry on the user's calendar list. (calendarList.get)
- *
- * @param string $calendarId Calendar identifier.
- * @param array $optParams Optional parameters.
- * @return Google_CalendarListEntry
- */
- public function get($calendarId, $optParams = array()) {
- $params = array('calendarId' => $calendarId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_CalendarListEntry($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns entries on the user's calendar list. (calendarList.list)
- *
- * @param array $optParams Optional parameters.
- *
- * @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.
- * @opt_param int maxResults Maximum number of entries returned on one result page. Optional.
- * @opt_param string minAccessRole The minimum access role for the user in the returned entires. Optional. The default is no restriction.
- * @return Google_CalendarList
- */
- public function listCalendarList($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CalendarList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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 'frontendColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'color' field will be set to the best matching option automatically. Optional. The default is False.
- * @return Google_CalendarListEntry
- */
- public function update($calendarId, Google_CalendarListEntry $postBody, $optParams = array()) {
- $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_CalendarListEntry($data);
- } else {
- return $data;
- }
- }
- /**
- * 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 'frontendColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'color' field will be set to the best matching option automatically. Optional. The default is False.
- * @return Google_CalendarListEntry
- */
- public function patch($calendarId, Google_CalendarListEntry $postBody, $optParams = array()) {
- $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_CalendarListEntry($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
- /**
- * The "calendars" collection of methods.
- * Typical usage is:
- *
- * $calendarService = new Google_CalendarService(...);
- * $calendars = $calendarService->calendars;
- *
- */
- class Google_CalendarsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Creates a secondary calendar. (calendars.insert)
- *
- * @param Google_Calendar $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Calendar
- */
- public function insert(Google_Calendar $postBody, $optParams = array()) {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Calendar($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns metadata for a calendar. (calendars.get)
- *
- * @param string $calendarId Calendar identifier.
- * @param array $optParams Optional parameters.
- * @return Google_Calendar
- */
- public function get($calendarId, $optParams = array()) {
- $params = array('calendarId' => $calendarId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Calendar($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('clear', array($params));
- return $data;
- }
- /**
- * Updates metadata for a calendar. (calendars.update)
- *
- * @param string $calendarId Calendar identifier.
- * @param Google_Calendar $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Calendar
- */
- public function update($calendarId, Google_Calendar $postBody, $optParams = array()) {
- $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Calendar($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Calendar
- */
- public function patch($calendarId, Google_Calendar $postBody, $optParams = array()) {
- $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Calendar($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
- /**
- * The "acl" collection of methods.
- * Typical usage is:
- *
- * $calendarService = new Google_CalendarService(...);
- * $acl = $calendarService->acl;
- *
- */
- class Google_AclServiceResource extends Google_Service_Resource {
-
-
- /**
- * Creates an access control rule. (acl.insert)
- *
- * @param string $calendarId Calendar identifier.
- * @param Google_AclRule $postBody
- * @param array $optParams Optional parameters.
- * @return Google_AclRule
- */
- public function insert($calendarId, Google_AclRule $postBody, $optParams = array()) {
- $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_AclRule($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_AclRule
- */
- public function get($calendarId, $ruleId, $optParams = array()) {
- $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_AclRule($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns the rules in the access control list for the calendar. (acl.list)
- *
- * @param string $calendarId Calendar identifier.
- * @param array $optParams Optional parameters.
- * @return Google_Acl
- */
- public function listAcl($calendarId, $optParams = array()) {
- $params = array('calendarId' => $calendarId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Acl($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_AclRule
- */
- public function update($calendarId, $ruleId, Google_AclRule $postBody, $optParams = array()) {
- $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_AclRule($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_AclRule
- */
- public function patch($calendarId, $ruleId, Google_AclRule $postBody, $optParams = array()) {
- $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_AclRule($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
- /**
- * The "colors" collection of methods.
- * Typical usage is:
- *
- * $calendarService = new Google_CalendarService(...);
- * $colors = $calendarService->colors;
- *
- */
- class Google_ColorsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Returns the color definitions for calendars and events. (colors.get)
- *
- * @param array $optParams Optional parameters.
- * @return Google_Colors
- */
- public function get($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Colors($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "events" collection of methods.
- * Typical usage is:
- *
- * $calendarService = new Google_CalendarService(...);
- * $events = $calendarService->events;
- *
- */
- class Google_EventsServiceResource extends Google_Service_Resource {
-
-
- /**
- * 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.
- * @return Google_Event
- */
- public function insert($calendarId, Google_Event $postBody, $optParams = array()) {
- $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Event($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Event
- */
- public function get($calendarId, $eventId, $optParams = array()) {
- $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Event($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Event
- */
- public function move($calendarId, $eventId, $destination, $optParams = array()) {
- $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'destination' => $destination);
- $params = array_merge($params, $optParams);
- $data = $this->__call('move', array($params));
- if ($this->useObjects()) {
- return new Google_Event($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns events on the specified calendar. (events.list)
- *
- * @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 bool showDeleted Whether to include deleted events (with 'eventStatus' equals 'cancelled') in the result. Optional. The default is False.
- * @opt_param string iCalUID Specifies iCalendar UID (iCalUID) of events 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. 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 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. 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 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 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_Events
- */
- public function listEvents($calendarId, $optParams = array()) {
- $params = array('calendarId' => $calendarId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Events($data);
- } else {
- return $data;
- }
- }
- /**
- * 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 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 bool sendNotifications Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). Optional. The default is False.
- * @return Google_Event
- */
- public function update($calendarId, $eventId, Google_Event $postBody, $optParams = array()) {
- $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Event($data);
- } else {
- return $data;
- }
- }
- /**
- * 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 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 bool sendNotifications Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). Optional. The default is False.
- * @return Google_Event
- */
- public function patch($calendarId, $eventId, Google_Event $postBody, $optParams = array()) {
- $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Event($data);
- } else {
- return $data;
- }
- }
- /**
- * 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 'eventStatus' equals 'cancelled') in the result. 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 maxResults Maximum number of events returned on one result page. Optional.
- * @opt_param string pageToken Token specifying which result page to return. Optional.
- * @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_Events
- */
- public function instances($calendarId, $eventId, $optParams = array()) {
- $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('instances', array($params));
- if ($this->useObjects()) {
- return new Google_Events($data);
- } else {
- return $data;
- }
- }
- /**
- * Imports an event. (events.import)
- *
- * @param string $calendarId Calendar identifier.
- * @param Google_Event $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Event
- */
- public function import($calendarId, Google_Event $postBody, $optParams = array()) {
- $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('import', array($params));
- if ($this->useObjects()) {
- return new Google_Event($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Event
- */
- public function quickAdd($calendarId, $text, $optParams = array()) {
- $params = array('calendarId' => $calendarId, 'text' => $text);
- $params = array_merge($params, $optParams);
- $data = $this->__call('quickAdd', array($params));
- if ($this->useObjects()) {
- return new Google_Event($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
-/**
- * Service definition for Google_Calendar (v3).
- *
- *
- * $computeService = new Google_ComputeService(...);
- * $firewalls = $computeService->firewalls;
- *
- */
- class Google_FirewallsServiceResource 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_Operation
- */
- public function delete($project, $firewall, $optParams = array()) {
- $params = array('project' => $project, 'firewall' => $firewall);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Firewall
- */
- public function get($project, $firewall, $optParams = array()) {
- $params = array('project' => $project, 'firewall' => $firewall);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Firewall($data);
- } else {
- return $data;
- }
- }
- /**
- * Creates a firewall resource in the specified project using the data included in the request.
- * (firewalls.insert)
- *
- * @param string $project Name of the project scoping this request.
- * @param Google_Firewall $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Operation
- */
- public function insert($project, Google_Firewall $postBody, $optParams = array()) {
- $params = array('project' => $project, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves the list of firewall resources available to the specified project. (firewalls.list)
- *
- * @param string $project Name of the project scoping this request.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string filter Optional. Filter expression for filtering listed resources.
- * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
- * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- * @return Google_FirewallList
- */
- public function listFirewalls($project, $optParams = array()) {
- $params = array('project' => $project);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_FirewallList($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates the specified firewall resource with the data included in the request. This method
- * supports patch semantics. (firewalls.patch)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $firewall Name of the firewall resource to update.
- * @param Google_Firewall $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Operation
- */
- public function patch($project, $firewall, Google_Firewall $postBody, $optParams = array()) {
- $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates the specified firewall resource with the data included in the request. (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_Operation
- */
- public function update($project, $firewall, Google_Firewall $postBody, $optParams = array()) {
- $params = array('project' => $project, 'firewall' => $firewall, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "globalOperations" collection of methods.
- * Typical usage is:
- *
- * $computeService = new Google_ComputeService(...);
- * $globalOperations = $computeService->globalOperations;
- *
- */
- class Google_GlobalOperationsServiceResource extends Google_Service_Resource {
-
-
- /**
- * 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * 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_Operation
- */
- public function get($project, $operation, $optParams = array()) {
- $params = array('project' => $project, 'operation' => $operation);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves the list of operation resources contained within the specified project.
- * (globalOperations.list)
- *
- * @param string $project Name of the project scoping this request.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string filter Optional. Filter expression for filtering listed resources.
- * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
- * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- * @return Google_OperationList
- */
- public function listGlobalOperations($project, $optParams = array()) {
- $params = array('project' => $project);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_OperationList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "images" collection of methods.
- * Typical usage is:
- *
- * $computeService = new Google_ComputeService(...);
- * $images = $computeService->images;
- *
- */
- class Google_ImagesServiceResource 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_Operation
- */
- public function delete($project, $image, $optParams = array()) {
- $params = array('project' => $project, 'image' => $image);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * Sets the deprecation status of an image. If no message body is given, clears the deprecation
- * status instead. (images.deprecate)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $image Image name.
- * @param Google_DeprecationStatus $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Operation
- */
- public function deprecate($project, $image, Google_DeprecationStatus $postBody, $optParams = array()) {
- $params = array('project' => $project, 'image' => $image, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('deprecate', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Image
- */
- public function get($project, $image, $optParams = array()) {
- $params = array('project' => $project, 'image' => $image);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Image($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Operation
- */
- public function insert($project, Google_Image $postBody, $optParams = array()) {
- $params = array('project' => $project, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves the list of image resources available to the specified project. (images.list)
- *
- * @param string $project Name of the project scoping this request.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string filter Optional. Filter expression for filtering listed resources.
- * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
- * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- * @return Google_ImageList
- */
- public function listImages($project, $optParams = array()) {
- $params = array('project' => $project);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_ImageList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "instances" collection of methods.
- * Typical usage is:
- *
- * $computeService = new Google_ComputeService(...);
- * $instances = $computeService->instances;
- *
- */
- class Google_InstancesServiceResource 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 $network_interface Network interface name.
- * @param Google_AccessConfig $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Operation
- */
- public function addAccessConfig($project, $zone, $instance, $network_interface, Google_AccessConfig $postBody, $optParams = array()) {
- $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'network_interface' => $network_interface, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('addAccessConfig', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Operation
- */
- public function delete($project, $zone, $instance, $optParams = array()) {
- $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * Deletes an access config from an instance's network interface. (instances.deleteAccessConfig)
- *
- * @param string $project Project name.
- * @param string $zone Name of the zone scoping this request.
- * @param string $instance Instance name.
- * @param string $access_config Access config name.
- * @param string $network_interface Network interface name.
- * @param array $optParams Optional parameters.
- * @return Google_Operation
- */
- public function deleteAccessConfig($project, $zone, $instance, $access_config, $network_interface, $optParams = array()) {
- $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'access_config' => $access_config, 'network_interface' => $network_interface);
- $params = array_merge($params, $optParams);
- $data = $this->__call('deleteAccessConfig', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Instance
- */
- public function get($project, $zone, $instance, $optParams = array()) {
- $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Instance($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_SerialPortOutput
- */
- public function getSerialPortOutput($project, $zone, $instance, $optParams = array()) {
- $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance);
- $params = array_merge($params, $optParams);
- $data = $this->__call('getSerialPortOutput', array($params));
- if ($this->useObjects()) {
- return new Google_SerialPortOutput($data);
- } else {
- return $data;
- }
- }
- /**
- * Creates an instance resource in the specified project using the data included in the request.
- * (instances.insert)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $zone Name of the zone scoping this request.
- * @param Google_Instance $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Operation
- */
- public function insert($project, $zone, Google_Instance $postBody, $optParams = array()) {
- $params = array('project' => $project, 'zone' => $zone, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves the list of instance resources contained within the specified zone. (instances.list)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $zone Name of the zone scoping this request.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string filter Optional. Filter expression for filtering listed resources.
- * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
- * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- * @return Google_InstanceList
- */
- public function listInstances($project, $zone, $optParams = array()) {
- $params = array('project' => $project, 'zone' => $zone);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_InstanceList($data);
- } else {
- return $data;
- }
- }
- /**
- * Sets metadata for the specified instance to the data included in the request.
- * (instances.setMetadata)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $zone Name of the zone scoping this request.
- * @param string $instance Name of the instance scoping this request.
- * @param Google_Metadata $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Operation
- */
- public function setMetadata($project, $zone, $instance, Google_Metadata $postBody, $optParams = array()) {
- $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('setMetadata', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * Sets tags for the specified instance to the data included in the request. (instances.setTags)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $zone Name of the zone scoping this request.
- * @param string $instance Name of the instance scoping this request.
- * @param Google_Tags $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Operation
- */
- public function setTags($project, $zone, $instance, Google_Tags $postBody, $optParams = array()) {
- $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('setTags', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "kernels" collection of methods.
- * Typical usage is:
- *
- * $computeService = new Google_ComputeService(...);
- * $kernels = $computeService->kernels;
- *
- */
- class Google_KernelsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Returns the specified kernel resource. (kernels.get)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $kernel Name of the kernel resource to return.
- * @param array $optParams Optional parameters.
- * @return Google_Kernel
- */
- public function get($project, $kernel, $optParams = array()) {
- $params = array('project' => $project, 'kernel' => $kernel);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Kernel($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves the list of kernel resources available to the specified project. (kernels.list)
- *
- * @param string $project Name of the project scoping this request.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string filter Optional. Filter expression for filtering listed resources.
- * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
- * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- * @return Google_KernelList
- */
- public function listKernels($project, $optParams = array()) {
- $params = array('project' => $project);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_KernelList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "machineTypes" collection of methods.
- * Typical usage is:
- *
- * $computeService = new Google_ComputeService(...);
- * $machineTypes = $computeService->machineTypes;
- *
- */
- class Google_MachineTypesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Returns the specified machine type resource. (machineTypes.get)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $machineType Name of the machine type resource to return.
- * @param array $optParams Optional parameters.
- * @return Google_MachineType
- */
- public function get($project, $machineType, $optParams = array()) {
- $params = array('project' => $project, 'machineType' => $machineType);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_MachineType($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves the list of machine type resources available to the specified project.
- * (machineTypes.list)
- *
- * @param string $project Name of the project scoping this request.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string filter Optional. Filter expression for filtering listed resources.
- * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
- * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- * @return Google_MachineTypeList
- */
- public function listMachineTypes($project, $optParams = array()) {
- $params = array('project' => $project);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_MachineTypeList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "networks" collection of methods.
- * Typical usage is:
- *
- * $computeService = new Google_ComputeService(...);
- * $networks = $computeService->networks;
- *
- */
- class Google_NetworksServiceResource 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_Operation
- */
- public function delete($project, $network, $optParams = array()) {
- $params = array('project' => $project, 'network' => $network);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns the specified network resource. (networks.get)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $network Name of the network resource to return.
- * @param array $optParams Optional parameters.
- * @return Google_Network
- */
- public function get($project, $network, $optParams = array()) {
- $params = array('project' => $project, 'network' => $network);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Network($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Operation
- */
- public function insert($project, Google_Network $postBody, $optParams = array()) {
- $params = array('project' => $project, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves the list of network resources available to the specified project. (networks.list)
- *
- * @param string $project Name of the project scoping this request.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string filter Optional. Filter expression for filtering listed resources.
- * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
- * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- * @return Google_NetworkList
- */
- public function listNetworks($project, $optParams = array()) {
- $params = array('project' => $project);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_NetworkList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "projects" collection of methods.
- * Typical usage is:
- *
- * $computeService = new Google_ComputeService(...);
- * $projects = $computeService->projects;
- *
- */
- class Google_ProjectsServiceResource 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_Project
- */
- public function get($project, $optParams = array()) {
- $params = array('project' => $project);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Project($data);
- } else {
- return $data;
- }
- }
- /**
- * Sets metadata common to all instances within the specified project using the data included in the
- * request. (projects.setCommonInstanceMetadata)
- *
- * @param string $project Name of the project scoping this request.
- * @param Google_Metadata $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Operation
- */
- public function setCommonInstanceMetadata($project, Google_Metadata $postBody, $optParams = array()) {
- $params = array('project' => $project, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('setCommonInstanceMetadata', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "snapshots" collection of methods.
- * Typical usage is:
- *
- * $computeService = new Google_ComputeService(...);
- * $snapshots = $computeService->snapshots;
- *
- */
- class Google_SnapshotsServiceResource 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_Operation
- */
- public function delete($project, $snapshot, $optParams = array()) {
- $params = array('project' => $project, 'snapshot' => $snapshot);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Snapshot
- */
- public function get($project, $snapshot, $optParams = array()) {
- $params = array('project' => $project, 'snapshot' => $snapshot);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Snapshot($data);
- } else {
- return $data;
- }
- }
- /**
- * Creates a persistent disk snapshot resource in the specified project using the data included in
- * the request. (snapshots.insert)
- *
- * @param string $project Name of the project scoping this request.
- * @param Google_Snapshot $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Operation
- */
- public function insert($project, Google_Snapshot $postBody, $optParams = array()) {
- $params = array('project' => $project, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves the list of persistent disk snapshot resources contained within the specified project.
- * (snapshots.list)
- *
- * @param string $project Name of the project scoping this request.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string filter Optional. Filter expression for filtering listed resources.
- * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
- * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- * @return Google_SnapshotList
- */
- public function listSnapshots($project, $optParams = array()) {
- $params = array('project' => $project);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SnapshotList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "zoneOperations" collection of methods.
- * Typical usage is:
- *
- * $computeService = new Google_ComputeService(...);
- * $zoneOperations = $computeService->zoneOperations;
- *
- */
- class Google_ZoneOperationsServiceResource 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * 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_Operation
- */
- public function get($project, $zone, $operation, $optParams = array()) {
- $params = array('project' => $project, 'zone' => $zone, 'operation' => $operation);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Operation($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves the list of operation resources contained within the specified zone.
- * (zoneOperations.list)
- *
- * @param string $project Name of the project scoping this request.
- * @param string $zone Name of the zone scoping this request.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string filter Optional. Filter expression for filtering listed resources.
- * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
- * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- * @return Google_OperationList
- */
- public function listZoneOperations($project, $zone, $optParams = array()) {
- $params = array('project' => $project, 'zone' => $zone);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_OperationList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "zones" collection of methods.
- * Typical usage is:
- *
- * $computeService = new Google_ComputeService(...);
- * $zones = $computeService->zones;
- *
- */
- class Google_ZonesServiceResource 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_Zone
- */
- public function get($project, $zone, $optParams = array()) {
- $params = array('project' => $project, 'zone' => $zone);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Zone($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves the list of zone resources available to the specified project. (zones.list)
- *
- * @param string $project Name of the project scoping this request.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string filter Optional. Filter expression for filtering listed resources.
- * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
- * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- * @return Google_ZoneList
- */
- public function listZones($project, $optParams = array()) {
- $params = array('project' => $project);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_ZoneList($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for Google_Compute (v1beta14).
- *
- *
- * $dfareportingService = new Google_DfareportingService(...);
- * $files = $dfareportingService->files;
- *
- */
- class Google_FilesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Lists files for a user profile. (files.list)
- *
- * @param string $profileId The DFA profile ID.
- * @param array $optParams Optional parameters.
- *
- * @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 sortField The field by which to sort the list.
- * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'.
- * @return Google_FileList
- */
- public function listFiles($profileId, $optParams = array()) {
- $params = array('profileId' => $profileId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_FileList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "reports" collection of methods.
- * Typical usage is:
- *
- * $dfareportingService = new Google_DfareportingService(...);
- * $reports = $dfareportingService->reports;
- *
- */
- class Google_ReportsServiceResource 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * 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_Report
- */
- public function get($profileId, $reportId, $optParams = array()) {
- $params = array('profileId' => $profileId, 'reportId' => $reportId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Report($data);
- } else {
- return $data;
- }
- }
- /**
- * Creates a report. (reports.insert)
- *
- * @param string $profileId The DFA user profile ID.
- * @param Google_Report $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Report
- */
- public function insert($profileId, Google_Report $postBody, $optParams = array()) {
- $params = array('profileId' => $profileId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Report($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves list of reports. (reports.list)
- *
- * @param string $profileId The DFA user profile ID.
- * @param array $optParams Optional parameters.
- *
- * @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 sortField The field by which to sort the list.
- * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'.
- * @return Google_ReportList
- */
- public function listReports($profileId, $optParams = array()) {
- $params = array('profileId' => $profileId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_ReportList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Report
- */
- public function patch($profileId, $reportId, Google_Report $postBody, $optParams = array()) {
- $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Report($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_DfareportingFile
- */
- public function run($profileId, $reportId, $optParams = array()) {
- $params = array('profileId' => $profileId, 'reportId' => $reportId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('run', array($params));
- if ($this->useObjects()) {
- return new Google_DfareportingFile($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Report
- */
- public function update($profileId, $reportId, Google_Report $postBody, $optParams = array()) {
- $params = array('profileId' => $profileId, 'reportId' => $reportId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Report($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "files" collection of methods.
- * Typical usage is:
- *
- * $dfareportingService = new Google_DfareportingService(...);
- * $files = $dfareportingService->files;
- *
- */
- class Google_ReportsFilesServiceResource 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_DfareportingFile
- */
- public function get($profileId, $reportId, $fileId, $optParams = array()) {
- $params = array('profileId' => $profileId, 'reportId' => $reportId, 'fileId' => $fileId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_DfareportingFile($data);
- } else {
- return $data;
- }
- }
- /**
- * Lists files for a report. (files.list)
- *
- * @param string $profileId The DFA profile ID.
- * @param string $reportId The ID of the parent report.
- * @param array $optParams Optional parameters.
- *
- * @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 sortField The field by which to sort the list.
- * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'.
- * @return Google_FileList
- */
- public function listReportsFiles($profileId, $reportId, $optParams = array()) {
- $params = array('profileId' => $profileId, 'reportId' => $reportId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_FileList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "userProfiles" collection of methods.
- * Typical usage is:
- *
- * $dfareportingService = new Google_DfareportingService(...);
- * $userProfiles = $dfareportingService->userProfiles;
- *
- */
- class Google_UserProfilesServiceResource 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_UserProfile
- */
- public function get($profileId, $optParams = array()) {
- $params = array('profileId' => $profileId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_UserProfile($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves list of user profiles for a user. (userProfiles.list)
- *
- * @param array $optParams Optional parameters.
- * @return Google_UserProfileList
- */
- public function listUserProfiles($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_UserProfileList($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for Google_Dfareporting (v1.1).
- *
- *
- * $driveService = new Google_DriveService(...);
- * $apps = $driveService->apps;
- *
- */
- class Google_AppsServiceResource 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_App
- */
- public function get($appId, $optParams = array()) {
- $params = array('appId' => $appId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_App($data);
- } else {
- return $data;
- }
- }
- /**
- * Lists a user's apps. (apps.list)
- *
- * @param array $optParams Optional parameters.
- * @return Google_AppList
- */
- public function listApps($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_AppList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "changes" collection of methods.
- * Typical usage is:
- *
- * $driveService = new Google_DriveService(...);
- * $changes = $driveService->changes;
- *
- */
- class Google_ChangesServiceResource 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_Change
- */
- public function get($changeId, $optParams = array()) {
- $params = array('changeId' => $changeId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Change($data);
- } else {
- return $data;
- }
- }
- /**
- * Lists the changes for a user. (changes.list)
- *
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool includeDeleted Whether to include deleted items.
- * @opt_param bool includeSubscribed Whether to include shared files and public files the user has opened. When set to false, the list will include owned files plus any shared or public files the user has explicitly added to a folder in Drive.
- * @opt_param int maxResults Maximum number of changes to return.
- * @opt_param string pageToken Page token for changes.
- * @opt_param string startChangeId Change ID to start listing changes from.
- * @return Google_ChangeList
- */
- public function listChanges($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_ChangeList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "children" collection of methods.
- * Typical usage is:
- *
- * $driveService = new Google_DriveService(...);
- * $children = $driveService->children;
- *
- */
- class Google_ChildrenServiceResource 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * Gets a specific child reference. (children.get)
- *
- * @param string $folderId The ID of the folder.
- * @param string $childId The ID of the child.
- * @param array $optParams Optional parameters.
- * @return Google_ChildReference
- */
- public function get($folderId, $childId, $optParams = array()) {
- $params = array('folderId' => $folderId, 'childId' => $childId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_ChildReference($data);
- } else {
- return $data;
- }
- }
- /**
- * Inserts a file into a folder. (children.insert)
- *
- * @param string $folderId The ID of the folder.
- * @param Google_ChildReference $postBody
- * @param array $optParams Optional parameters.
- * @return Google_ChildReference
- */
- public function insert($folderId, Google_ChildReference $postBody, $optParams = array()) {
- $params = array('folderId' => $folderId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_ChildReference($data);
- } else {
- return $data;
- }
- }
- /**
- * Lists a folder's children. (children.list)
- *
- * @param string $folderId The ID of the folder.
- * @param array $optParams Optional parameters.
- *
- * @opt_param int maxResults Maximum number of children to return.
- * @opt_param string pageToken Page token for children.
- * @opt_param string q Query string for searching children.
- * @return Google_ChildList
- */
- public function listChildren($folderId, $optParams = array()) {
- $params = array('folderId' => $folderId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_ChildList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "comments" collection of methods.
- * Typical usage is:
- *
- * $driveService = new Google_DriveService(...);
- * $comments = $driveService->comments;
- *
- */
- class Google_CommentsServiceResource 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * 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_Comment
- */
- public function get($fileId, $commentId, $optParams = array()) {
- $params = array('fileId' => $fileId, 'commentId' => $commentId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Comment($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Comment
- */
- public function insert($fileId, Google_Comment $postBody, $optParams = array()) {
- $params = array('fileId' => $fileId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Comment($data);
- } else {
- return $data;
- }
- }
- /**
- * Lists a file's comments. (comments.list)
- *
- * @param string $fileId The ID of the file.
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool includeDeleted If set, all comments and replies, including deleted comments and replies (with content stripped) will be returned.
- * @opt_param int maxResults The maximum number of discussions to include in the response, used for paging.
- * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
- * @opt_param string updatedMin Only discussions that were updated after this timestamp will be returned. Formatted as an RFC 3339 timestamp.
- * @return Google_CommentList
- */
- public function listComments($fileId, $optParams = array()) {
- $params = array('fileId' => $fileId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CommentList($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates an existing comment. This method supports patch semantics. (comments.patch)
- *
- * @param string $fileId The ID of the file.
- * @param string $commentId The ID of the comment.
- * @param Google_Comment $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Comment
- */
- public function patch($fileId, $commentId, Google_Comment $postBody, $optParams = array()) {
- $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Comment($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates an existing comment. (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_Comment
- */
- public function update($fileId, $commentId, Google_Comment $postBody, $optParams = array()) {
- $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Comment($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "files" collection of methods.
- * Typical usage is:
- *
- * $driveService = new Google_DriveService(...);
- * $files = $driveService->files;
- *
- */
- class Google_FilesServiceResource 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 bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
- * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
- * @opt_param bool pinned Whether to pin the head revision of the new copy.
- * @opt_param string sourceLanguage The language of the original file to be translated.
- * @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
- * @opt_param string timedTextLanguage The language of the timed text.
- * @opt_param string timedTextTrackName The timed text track name.
- * @return Google_DriveFile
- */
- public function copy($fileId, Google_DriveFile $postBody, $optParams = array()) {
- $params = array('fileId' => $fileId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('copy', array($params));
- if ($this->useObjects()) {
- return new Google_DriveFile($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * Gets a file's metadata by ID. (files.get)
- *
- * @param string $fileId The ID for the file in question.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string projection This parameter is deprecated and has no function.
- * @opt_param bool updateViewedDate Whether to update the view date after successfully retrieving the file.
- * @return Google_DriveFile
- */
- public function get($fileId, $optParams = array()) {
- $params = array('fileId' => $fileId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_DriveFile($data);
- } else {
- return $data;
- }
- }
- /**
- * 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 ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
- * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
- * @opt_param bool pinned Whether to pin the head revision of the uploaded file.
- * @opt_param string sourceLanguage The language of the original file to be translated.
- * @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
- * @opt_param string timedTextLanguage The language of the timed text.
- * @opt_param string timedTextTrackName The timed text track name.
- * @return Google_DriveFile
- */
- public function insert(Google_DriveFile $postBody, $optParams = array()) {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_DriveFile($data);
- } else {
- return $data;
- }
- }
- /**
- * Lists the user's files. (files.list)
- *
- * @param array $optParams Optional parameters.
- *
- * @opt_param int maxResults Maximum number of files to return.
- * @opt_param string pageToken Page token for files.
- * @opt_param string projection This parameter is deprecated and has no function.
- * @opt_param string q Query string for searching files.
- * @return Google_FileList
- */
- public function listFiles($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_FileList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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 bool convert Whether to convert this file to the corresponding Google Docs format.
- * @opt_param bool newRevision Whether a blob upload should create a new revision. If false, the blob data in the current head revision will be replaced.
- * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
- * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
- * @opt_param bool pinned Whether to pin the new revision.
- * @opt_param bool setModifiedDate Whether to set the modified date with the supplied modified date.
- * @opt_param string sourceLanguage The language of the original file to be translated.
- * @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
- * @opt_param string timedTextLanguage The language of the timed text.
- * @opt_param string timedTextTrackName The timed text track name.
- * @opt_param bool updateViewedDate Whether to update the view date after successfully updating the file.
- * @return Google_DriveFile
- */
- public function patch($fileId, Google_DriveFile $postBody, $optParams = array()) {
- $params = array('fileId' => $fileId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_DriveFile($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_DriveFile
- */
- public function touch($fileId, $optParams = array()) {
- $params = array('fileId' => $fileId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('touch', array($params));
- if ($this->useObjects()) {
- return new Google_DriveFile($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_DriveFile
- */
- public function trash($fileId, $optParams = array()) {
- $params = array('fileId' => $fileId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('trash', array($params));
- if ($this->useObjects()) {
- return new Google_DriveFile($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_DriveFile
- */
- public function untrash($fileId, $optParams = array()) {
- $params = array('fileId' => $fileId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('untrash', array($params));
- if ($this->useObjects()) {
- return new Google_DriveFile($data);
- } else {
- return $data;
- }
- }
- /**
- * 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 bool convert Whether to convert this file to the corresponding Google Docs format.
- * @opt_param bool newRevision Whether a blob upload should create a new revision. If false, the blob data in the current head revision will be replaced.
- * @opt_param bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
- * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
- * @opt_param bool pinned Whether to pin the new revision.
- * @opt_param bool setModifiedDate Whether to set the modified date with the supplied modified date.
- * @opt_param string sourceLanguage The language of the original file to be translated.
- * @opt_param string targetLanguage Target language to translate the file to. If no sourceLanguage is provided, the API will attempt to detect the language.
- * @opt_param string timedTextLanguage The language of the timed text.
- * @opt_param string timedTextTrackName The timed text track name.
- * @opt_param bool updateViewedDate Whether to update the view date after successfully updating the file.
- * @return Google_DriveFile
- */
- public function update($fileId, Google_DriveFile $postBody, $optParams = array()) {
- $params = array('fileId' => $fileId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_DriveFile($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "parents" collection of methods.
- * Typical usage is:
- *
- * $driveService = new Google_DriveService(...);
- * $parents = $driveService->parents;
- *
- */
- class Google_ParentsServiceResource 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * 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_ParentReference
- */
- public function get($fileId, $parentId, $optParams = array()) {
- $params = array('fileId' => $fileId, 'parentId' => $parentId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_ParentReference($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_ParentReference
- */
- public function insert($fileId, Google_ParentReference $postBody, $optParams = array()) {
- $params = array('fileId' => $fileId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_ParentReference($data);
- } else {
- return $data;
- }
- }
- /**
- * Lists a file's parents. (parents.list)
- *
- * @param string $fileId The ID of the file.
- * @param array $optParams Optional parameters.
- * @return Google_ParentList
- */
- public function listParents($fileId, $optParams = array()) {
- $params = array('fileId' => $fileId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_ParentList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "permissions" collection of methods.
- * Typical usage is:
- *
- * $driveService = new Google_DriveService(...);
- * $permissions = $driveService->permissions;
- *
- */
- class Google_PermissionsServiceResource 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * 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_Permission
- */
- public function get($fileId, $permissionId, $optParams = array()) {
- $params = array('fileId' => $fileId, 'permissionId' => $permissionId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Permission($data);
- } else {
- return $data;
- }
- }
- /**
- * 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 bool sendNotificationEmails Whether to send notification emails.
- * @return Google_Permission
- */
- public function insert($fileId, Google_Permission $postBody, $optParams = array()) {
- $params = array('fileId' => $fileId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Permission($data);
- } else {
- return $data;
- }
- }
- /**
- * Lists a file's permissions. (permissions.list)
- *
- * @param string $fileId The ID for the file.
- * @param array $optParams Optional parameters.
- * @return Google_PermissionList
- */
- public function listPermissions($fileId, $optParams = array()) {
- $params = array('fileId' => $fileId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_PermissionList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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.
- * @return Google_Permission
- */
- public function patch($fileId, $permissionId, Google_Permission $postBody, $optParams = array()) {
- $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Permission($data);
- } else {
- return $data;
- }
- }
- /**
- * 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.
- * @return Google_Permission
- */
- public function update($fileId, $permissionId, Google_Permission $postBody, $optParams = array()) {
- $params = array('fileId' => $fileId, 'permissionId' => $permissionId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Permission($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "replies" collection of methods.
- * Typical usage is:
- *
- * $driveService = new Google_DriveService(...);
- * $replies = $driveService->replies;
- *
- */
- class Google_RepliesServiceResource 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * 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_CommentReply
- */
- public function get($fileId, $commentId, $replyId, $optParams = array()) {
- $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_CommentReply($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_CommentReply
- */
- public function insert($fileId, $commentId, Google_CommentReply $postBody, $optParams = array()) {
- $params = array('fileId' => $fileId, 'commentId' => $commentId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_CommentReply($data);
- } else {
- return $data;
- }
- }
- /**
- * Lists all of the replies to a comment. (replies.list)
- *
- * @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, 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.
- * @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.
- * @return Google_CommentReplyList
- */
- public function listReplies($fileId, $commentId, $optParams = array()) {
- $params = array('fileId' => $fileId, 'commentId' => $commentId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CommentReplyList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_CommentReply
- */
- public function patch($fileId, $commentId, $replyId, Google_CommentReply $postBody, $optParams = array()) {
- $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_CommentReply($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_CommentReply
- */
- public function update($fileId, $commentId, $replyId, Google_CommentReply $postBody, $optParams = array()) {
- $params = array('fileId' => $fileId, 'commentId' => $commentId, 'replyId' => $replyId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_CommentReply($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "revisions" collection of methods.
- * Typical usage is:
- *
- * $driveService = new Google_DriveService(...);
- * $revisions = $driveService->revisions;
- *
- */
- class Google_RevisionsServiceResource 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * 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_Revision
- */
- public function get($fileId, $revisionId, $optParams = array()) {
- $params = array('fileId' => $fileId, 'revisionId' => $revisionId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Revision($data);
- } else {
- return $data;
- }
- }
- /**
- * Lists a file's revisions. (revisions.list)
- *
- * @param string $fileId The ID of the file.
- * @param array $optParams Optional parameters.
- * @return Google_RevisionList
- */
- public function listRevisions($fileId, $optParams = array()) {
- $params = array('fileId' => $fileId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_RevisionList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Revision
- */
- public function patch($fileId, $revisionId, Google_Revision $postBody, $optParams = array()) {
- $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Revision($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Revision
- */
- public function update($fileId, $revisionId, Google_Revision $postBody, $optParams = array()) {
- $params = array('fileId' => $fileId, 'revisionId' => $revisionId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Revision($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for Google_Drive (v2).
- *
- *
- * $fusiontablesService = new Google_FusiontablesService(...);
- * $query = $fusiontablesService->query;
- *
- */
- class Google_QueryServiceResource extends Google_Service_Resource {
-
-
- /**
- * 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_Sqlresponse
- */
- public function sqlGet($sql, $optParams = array()) {
- $params = array('sql' => $sql);
- $params = array_merge($params, $optParams);
- $data = $this->__call('sqlGet', array($params));
- if ($this->useObjects()) {
- return new Google_Sqlresponse($data);
- } else {
- return $data;
- }
- }
- /**
- * Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE statement. (query.sql)
- *
- * @param string $sql An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE 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_Sqlresponse
- */
- public function sql($sql, $optParams = array()) {
- $params = array('sql' => $sql);
- $params = array_merge($params, $optParams);
- $data = $this->__call('sql', array($params));
- if ($this->useObjects()) {
- return new Google_Sqlresponse($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "style" collection of methods.
- * Typical usage is:
- *
- * $fusiontablesService = new Google_FusiontablesService(...);
- * $style = $fusiontablesService->style;
- *
- */
- class Google_StyleServiceResource extends Google_Service_Resource {
-
-
- /**
- * 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_StyleSetting
- */
- public function insert($tableId, Google_StyleSetting $postBody, $optParams = array()) {
- $params = array('tableId' => $tableId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_StyleSetting($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_StyleSetting
- */
- public function get($tableId, $styleId, $optParams = array()) {
- $params = array('tableId' => $tableId, 'styleId' => $styleId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_StyleSetting($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves a list of styles. (style.list)
- *
- * @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_StyleSettingList
- */
- public function listStyle($tableId, $optParams = array()) {
- $params = array('tableId' => $tableId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_StyleSettingList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_StyleSetting
- */
- public function update($tableId, $styleId, Google_StyleSetting $postBody, $optParams = array()) {
- $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_StyleSetting($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_StyleSetting
- */
- public function patch($tableId, $styleId, Google_StyleSetting $postBody, $optParams = array()) {
- $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_StyleSetting($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
- /**
- * The "template" collection of methods.
- * Typical usage is:
- *
- * $fusiontablesService = new Google_FusiontablesService(...);
- * $template = $fusiontablesService->template;
- *
- */
- class Google_TemplateServiceResource extends Google_Service_Resource {
-
-
- /**
- * 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_Template
- */
- public function insert($tableId, Google_Template $postBody, $optParams = array()) {
- $params = array('tableId' => $tableId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Template($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Template
- */
- public function get($tableId, $templateId, $optParams = array()) {
- $params = array('tableId' => $tableId, 'templateId' => $templateId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Template($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves a list of templates. (template.list)
- *
- * @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_TemplateList
- */
- public function listTemplate($tableId, $optParams = array()) {
- $params = array('tableId' => $tableId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_TemplateList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Template
- */
- public function update($tableId, $templateId, Google_Template $postBody, $optParams = array()) {
- $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Template($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Template
- */
- public function patch($tableId, $templateId, Google_Template $postBody, $optParams = array()) {
- $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Template($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
- /**
- * The "table" collection of methods.
- * Typical usage is:
- *
- * $fusiontablesService = new Google_FusiontablesService(...);
- * $table = $fusiontablesService->table;
- *
- */
- class Google_TableServiceResource extends Google_Service_Resource {
-
-
- /**
- * Creates a new table. (table.insert)
- *
- * @param Google_Table $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Table
- */
- public function insert(Google_Table $postBody, $optParams = array()) {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Table($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Table
- */
- public function get($tableId, $optParams = array()) {
- $params = array('tableId' => $tableId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Table($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves a list of tables a user owns. (table.list)
- *
- * @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_TableList
- */
- public function listTable($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_TableList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Table
- */
- public function update($tableId, Google_Table $postBody, $optParams = array()) {
- $params = array('tableId' => $tableId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Table($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Table
- */
- public function patch($tableId, Google_Table $postBody, $optParams = array()) {
- $params = array('tableId' => $tableId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Table($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
-/**
- * Service definition for Google_Fusiontables (v1).
- *
- *
- * $ganService = new Google_GanService(...);
- * $ccOffers = $ganService->ccOffers;
- *
- */
- class Google_CcOffersServiceResource extends Google_Service_Resource {
-
-
- /**
- * Retrieves credit card offers for the given publisher. (ccOffers.list)
- *
- * @param string $publisher The ID of the publisher in question.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string advertiser The advertiser ID of a card issuer whose offers to include. Optional, may be repeated.
- * @opt_param string projection The set of fields to return.
- * @return Google_CcOffers
- */
- public function listCcOffers($publisher, $optParams = array()) {
- $params = array('publisher' => $publisher);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CcOffers($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "events" collection of methods.
- * Typical usage is:
- *
- * $ganService = new Google_GanService(...);
- * $events = $ganService->events;
- *
- */
- class Google_EventsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Retrieves event data for a given advertiser/publisher. (events.list)
- *
- * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
- * @param string $roleId The ID of the requesting advertiser or publisher.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string orderId Caret(^) delimited list of order IDs. Filters out all events that do not reference one of the given order IDs. Optional.
- * @opt_param string sku Caret(^) delimited list of SKUs. Filters out all events that do not reference one of the given SKU. Optional.
- * @opt_param string eventDateMax Filters out all events later than given date. Optional. Defaults to 24 hours after eventMin.
- * @opt_param string type Filters out all events that are not of the given type. Valid values: 'action', 'transaction', 'charge'. Optional.
- * @opt_param string linkId Caret(^) delimited list of link IDs. Filters out all events that do not reference one of the given link IDs. Optional.
- * @opt_param string modifyDateMin Filters out all events modified earlier than given date. Optional. Defaults to 24 hours before the current modifyDateMax, if modifyDateMax is explicitly set.
- * @opt_param string eventDateMin Filters out all events earlier than given date. Optional. Defaults to 24 hours from current date/time.
- * @opt_param string memberId Caret(^) delimited list of member IDs. Filters out all events that do not reference one of the given member IDs. Optional.
- * @opt_param string maxResults Max number of offers to return in this page. Optional. Defaults to 20.
- * @opt_param string advertiserId Caret(^) delimited list of advertiser IDs. Filters out all events that do not reference one of the given advertiser IDs. Only used when under publishers role. Optional.
- * @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
- * @opt_param string productCategory Caret(^) delimited list of product categories. Filters out all events that do not reference a product in one of the given product categories. Optional.
- * @opt_param string chargeType Filters out all charge events that are not of the given charge type. Valid values: 'other', 'slotting_fee', 'monthly_minimum', 'tier_bonus', 'credit', 'debit'. Optional.
- * @opt_param string modifyDateMax Filters out all events modified later than given date. Optional. Defaults to 24 hours after modifyDateMin, if modifyDateMin is explicitly set.
- * @opt_param string status Filters out all events that do not have the given status. Valid values: 'active', 'canceled'. Optional.
- * @opt_param string publisherId Caret(^) delimited list of publisher IDs. Filters out all events that do not reference one of the given publishers IDs. Only used when under advertiser role. Optional.
- * @return Google_Events
- */
- public function listEvents($role, $roleId, $optParams = array()) {
- $params = array('role' => $role, 'roleId' => $roleId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Events($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "links" collection of methods.
- * Typical usage is:
- *
- * $ganService = new Google_GanService(...);
- * $links = $ganService->links;
- *
- */
- class Google_LinksServiceResource extends Google_Service_Resource {
-
-
- /**
- * Inserts a new link. (links.insert)
- *
- * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
- * @param string $roleId The ID of the requesting advertiser or publisher.
- * @param Google_Link $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Link
- */
- public function insert($role, $roleId, Google_Link $postBody, $optParams = array()) {
- $params = array('role' => $role, 'roleId' => $roleId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Link($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves all links that match the query parameters. (links.list)
- *
- * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
- * @param string $roleId The ID of the requesting advertiser or publisher.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string linkType The type of the link.
- * @opt_param string startDateMin The beginning of the start date range.
- * @opt_param string assetSize The size of the given asset.
- * @opt_param string searchText Field for full text search across title and merchandising text, supports link id search.
- * @opt_param string createDateMax The end of the create date range.
- * @opt_param string createDateMin The beginning of the create date range.
- * @opt_param string relationshipStatus The status of the relationship.
- * @opt_param string maxResults Max number of items to return in this page. Optional. Defaults to 20.
- * @opt_param string advertiserId Limits the resulting links to the ones belonging to the listed advertisers.
- * @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
- * @opt_param string startDateMax The end of the start date range.
- * @opt_param string promotionType The promotion type.
- * @opt_param string authorship The role of the author of the link.
- * @return Google_Links
- */
- public function listLinks($role, $roleId, $optParams = array()) {
- $params = array('role' => $role, 'roleId' => $roleId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Links($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves data about a single link if the requesting advertiser/publisher has access to it.
- * Advertisers can look up their own links. Publishers can look up visible links or links belonging
- * to advertisers they are in a relationship with. (links.get)
- *
- * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
- * @param string $roleId The ID of the requesting advertiser or publisher.
- * @param string $linkId The ID of the link to look up.
- * @param array $optParams Optional parameters.
- * @return Google_Link
- */
- public function get($role, $roleId, $linkId, $optParams = array()) {
- $params = array('role' => $role, 'roleId' => $roleId, 'linkId' => $linkId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Link($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "publishers" collection of methods.
- * Typical usage is:
- *
- * $ganService = new Google_GanService(...);
- * $publishers = $ganService->publishers;
- *
- */
- class Google_PublishersServiceResource extends Google_Service_Resource {
-
-
- /**
- * Retrieves data about all publishers that the requesting advertiser/publisher has access to.
- * (publishers.list)
- *
- * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
- * @param string $roleId The ID of the requesting advertiser or publisher.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string publisherCategory Caret(^) delimited list of publisher categories. Valid categories: (unclassified|community_and_content|shopping_and_promotion|loyalty_and_rewards|network|search_specialist|comparison_shopping|email). Filters out all publishers not in one of the given advertiser categories. Optional.
- * @opt_param string relationshipStatus Filters out all publishers for which do not have the given relationship status with the requesting publisher.
- * @opt_param double minSevenDayEpc Filters out all publishers that have a seven day EPC average lower than the given value (inclusive). Min value 0.0. Optional.
- * @opt_param double minNinetyDayEpc Filters out all publishers that have a ninety day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.
- * @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
- * @opt_param string maxResults Max number of items to return in this page. Optional. Defaults to 20.
- * @opt_param int minPayoutRank A value between 1 and 4, where 1 represents the quartile of publishers with the lowest ranks and 4 represents the quartile of publishers with the highest ranks. Filters out all publishers with a lower rank than the given quartile. For example if a 2 was given only publishers with a payout rank of 25 or higher would be included. Optional.
- * @return Google_Publishers
- */
- public function listPublishers($role, $roleId, $optParams = array()) {
- $params = array('role' => $role, 'roleId' => $roleId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Publishers($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves data about a single advertiser if that the requesting advertiser/publisher has access
- * to it. Only advertisers can look up publishers. Publishers can request information about
- * themselves by omitting the publisherId query parameter. (publishers.get)
- *
- * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
- * @param string $roleId The ID of the requesting advertiser or publisher.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string publisherId The ID of the publisher to look up. Optional.
- * @return Google_Publisher
- */
- public function get($role, $roleId, $optParams = array()) {
- $params = array('role' => $role, 'roleId' => $roleId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Publisher($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for Google_Gan (v1beta1).
- *
- *
- * $latitudeService = new Google_LatitudeService(...);
- * $location = $latitudeService->location;
- *
- */
- class Google_LocationServiceResource extends Google_Service_Resource {
-
-
- /**
- * Inserts or updates a location in the user's location history. (location.insert)
- *
- * @param Google_Location $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Location
- */
- public function insert(Google_Location $postBody, $optParams = array()) {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Location($data);
- } else {
- return $data;
- }
- }
- /**
- * Reads a location from the user's location history. (location.get)
- *
- * @param string $locationId Timestamp of the location to read (ms since epoch).
- * @param array $optParams Optional parameters.
- *
- * @opt_param string granularity Granularity of the location to return.
- * @return Google_Location
- */
- public function get($locationId, $optParams = array()) {
- $params = array('locationId' => $locationId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Location($data);
- } else {
- return $data;
- }
- }
- /**
- * Lists the user's location history. (location.list)
- *
- * @param array $optParams Optional parameters.
- *
- * @opt_param string max-results Maximum number of locations to return.
- * @opt_param string max-time Maximum timestamp of locations to return (ms since epoch).
- * @opt_param string min-time Minimum timestamp of locations to return (ms since epoch).
- * @opt_param string granularity Granularity of the requested locations.
- * @return Google_LocationFeed
- */
- public function listLocation($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_LocationFeed($data);
- } else {
- return $data;
- }
- }
- /**
- * Deletes a location from the user's location history. (location.delete)
- *
- * @param string $locationId Timestamp of the location to delete (ms since epoch).
- * @param array $optParams Optional parameters.
- */
- public function delete($locationId, $optParams = array()) {
- $params = array('locationId' => $locationId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
-/**
- * Service definition for Google_Latitude (v1).
- *
- *
- * $moderatorService = new Google_ModeratorService(...);
- * $responses = $moderatorService->responses;
- *
- */
- class Google_ResponsesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Inserts a response for the specified submission in the specified topic within the specified
- * series. (responses.insert)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param string $topicId The decimal ID of the Topic within the Series.
- * @param string $parentSubmissionId The decimal ID of the parent Submission within the Series.
- * @param Google_Submission $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param string unauthToken User identifier for unauthenticated usage mode
- * @opt_param bool anonymous Set to true to mark the new submission as anonymous.
- * @return Google_Submission
- */
- public function insert($seriesId, $topicId, $parentSubmissionId, Google_Submission $postBody, $optParams = array()) {
- $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'parentSubmissionId' => $parentSubmissionId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Submission($data);
- } else {
- return $data;
- }
- }
- /**
- * Lists or searches the responses for the specified submission within the specified series and
- * returns the search results. (responses.list)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param string $submissionId The decimal ID of the Submission within the Series.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string max-results Maximum number of results to return.
- * @opt_param string sort Sort order.
- * @opt_param string author Restricts the results to submissions by a specific author.
- * @opt_param string start-index Index of the first result to be retrieved.
- * @opt_param string q Search query.
- * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
- * @return Google_SubmissionList
- */
- public function listResponses($seriesId, $submissionId, $optParams = array()) {
- $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SubmissionList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "tags" collection of methods.
- * Typical usage is:
- *
- * $moderatorService = new Google_ModeratorService(...);
- * $tags = $moderatorService->tags;
- *
- */
- class Google_TagsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Inserts a new tag for the specified submission within the specified series. (tags.insert)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param string $submissionId The decimal ID of the Submission within the Series.
- * @param Google_Tag $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Tag
- */
- public function insert($seriesId, $submissionId, Google_Tag $postBody, $optParams = array()) {
- $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Tag($data);
- } else {
- return $data;
- }
- }
- /**
- * Lists all tags for the specified submission within the specified series. (tags.list)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param string $submissionId The decimal ID of the Submission within the Series.
- * @param array $optParams Optional parameters.
- * @return Google_TagList
- */
- public function listTags($seriesId, $submissionId, $optParams = array()) {
- $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_TagList($data);
- } else {
- return $data;
- }
- }
- /**
- * Deletes the specified tag from the specified submission within the specified series.
- * (tags.delete)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param string $submissionId The decimal ID of the Submission within the Series.
- * @param string $tagId
- * @param array $optParams Optional parameters.
- */
- public function delete($seriesId, $submissionId, $tagId, $optParams = array()) {
- $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId, 'tagId' => $tagId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
- /**
- * The "series" collection of methods.
- * Typical usage is:
- *
- * $moderatorService = new Google_ModeratorService(...);
- * $series = $moderatorService->series;
- *
- */
- class Google_SeriesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Inserts a new series. (series.insert)
- *
- * @param Google_Series $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Series
- */
- public function insert(Google_Series $postBody, $optParams = array()) {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Series($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates the specified series. This method supports patch semantics. (series.patch)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param Google_Series $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Series
- */
- public function patch($seriesId, Google_Series $postBody, $optParams = array()) {
- $params = array('seriesId' => $seriesId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Series($data);
- } else {
- return $data;
- }
- }
- /**
- * Searches the series and returns the search results. (series.list)
- *
- * @param array $optParams Optional parameters.
- *
- * @opt_param string max-results Maximum number of results to return.
- * @opt_param string q Search query.
- * @opt_param string start-index Index of the first result to be retrieved.
- * @return Google_SeriesList
- */
- public function listSeries($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SeriesList($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates the specified series. (series.update)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param Google_Series $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Series
- */
- public function update($seriesId, Google_Series $postBody, $optParams = array()) {
- $params = array('seriesId' => $seriesId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Series($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns the specified series. (series.get)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param array $optParams Optional parameters.
- * @return Google_Series
- */
- public function get($seriesId, $optParams = array()) {
- $params = array('seriesId' => $seriesId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Series($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "submissions" collection of methods.
- * Typical usage is:
- *
- * $moderatorService = new Google_ModeratorService(...);
- * $submissions = $moderatorService->submissions;
- *
- */
- class Google_SeriesSubmissionsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Searches the submissions for the specified series and returns the search results.
- * (submissions.list)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string lang The language code for the language the client prefers results in.
- * @opt_param string max-results Maximum number of results to return.
- * @opt_param bool includeVotes Specifies whether to include the current user's vote
- * @opt_param string start-index Index of the first result to be retrieved.
- * @opt_param string author Restricts the results to submissions by a specific author.
- * @opt_param string sort Sort order.
- * @opt_param string q Search query.
- * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
- * @return Google_SubmissionList
- */
- public function listSeriesSubmissions($seriesId, $optParams = array()) {
- $params = array('seriesId' => $seriesId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SubmissionList($data);
- } else {
- return $data;
- }
- }
- }
- /**
- * The "responses" collection of methods.
- * Typical usage is:
- *
- * $moderatorService = new Google_ModeratorService(...);
- * $responses = $moderatorService->responses;
- *
- */
- class Google_SeriesResponsesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Searches the responses for the specified series and returns the search results. (responses.list)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string max-results Maximum number of results to return.
- * @opt_param string sort Sort order.
- * @opt_param string author Restricts the results to submissions by a specific author.
- * @opt_param string start-index Index of the first result to be retrieved.
- * @opt_param string q Search query.
- * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
- * @return Google_SeriesList
- */
- public function listSeriesResponses($seriesId, $optParams = array()) {
- $params = array('seriesId' => $seriesId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SeriesList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "topics" collection of methods.
- * Typical usage is:
- *
- * $moderatorService = new Google_ModeratorService(...);
- * $topics = $moderatorService->topics;
- *
- */
- class Google_TopicsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Inserts a new topic into the specified series. (topics.insert)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param Google_Topic $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Topic
- */
- public function insert($seriesId, Google_Topic $postBody, $optParams = array()) {
- $params = array('seriesId' => $seriesId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Topic($data);
- } else {
- return $data;
- }
- }
- /**
- * Searches the topics within the specified series and returns the search results. (topics.list)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string max-results Maximum number of results to return.
- * @opt_param string q Search query.
- * @opt_param string start-index Index of the first result to be retrieved.
- * @opt_param string mode
- * @return Google_TopicList
- */
- public function listTopics($seriesId, $optParams = array()) {
- $params = array('seriesId' => $seriesId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_TopicList($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates the specified topic within the specified series. (topics.update)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param string $topicId The decimal ID of the Topic within the Series.
- * @param Google_Topic $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Topic
- */
- public function update($seriesId, $topicId, Google_Topic $postBody, $optParams = array()) {
- $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Topic($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns the specified topic from the specified series. (topics.get)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param string $topicId The decimal ID of the Topic within the Series.
- * @param array $optParams Optional parameters.
- * @return Google_Topic
- */
- public function get($seriesId, $topicId, $optParams = array()) {
- $params = array('seriesId' => $seriesId, 'topicId' => $topicId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Topic($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "submissions" collection of methods.
- * Typical usage is:
- *
- * $moderatorService = new Google_ModeratorService(...);
- * $submissions = $moderatorService->submissions;
- *
- */
- class Google_TopicsSubmissionsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Searches the submissions for the specified topic within the specified series and returns the
- * search results. (submissions.list)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param string $topicId The decimal ID of the Topic within the Series.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string max-results Maximum number of results to return.
- * @opt_param bool includeVotes Specifies whether to include the current user's vote
- * @opt_param string start-index Index of the first result to be retrieved.
- * @opt_param string author Restricts the results to submissions by a specific author.
- * @opt_param string sort Sort order.
- * @opt_param string q Search query.
- * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached.
- * @return Google_SubmissionList
- */
- public function listTopicsSubmissions($seriesId, $topicId, $optParams = array()) {
- $params = array('seriesId' => $seriesId, 'topicId' => $topicId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SubmissionList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "global" collection of methods.
- * Typical usage is:
- *
- * $moderatorService = new Google_ModeratorService(...);
- * $global = $moderatorService->global;
- *
- */
- class Google_ModeratorGlobalServiceResource extends Google_Service_Resource {
-
-
- }
-
- /**
- * The "series" collection of methods.
- * Typical usage is:
- *
- * $moderatorService = new Google_ModeratorService(...);
- * $series = $moderatorService->series;
- *
- */
- class Google_ModeratorGlobalSeriesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Searches the public series and returns the search results. (series.list)
- *
- * @param array $optParams Optional parameters.
- *
- * @opt_param string max-results Maximum number of results to return.
- * @opt_param string q Search query.
- * @opt_param string start-index Index of the first result to be retrieved.
- * @return Google_SeriesList
- */
- public function listModeratorGlobalSeries($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SeriesList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "profiles" collection of methods.
- * Typical usage is:
- *
- * $moderatorService = new Google_ModeratorService(...);
- * $profiles = $moderatorService->profiles;
- *
- */
- class Google_ProfilesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Updates the profile information for the authenticated user. This method supports patch semantics.
- * (profiles.patch)
- *
- * @param Google_Profile $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Profile
- */
- public function patch(Google_Profile $postBody, $optParams = array()) {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Profile($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates the profile information for the authenticated user. (profiles.update)
- *
- * @param Google_Profile $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Profile
- */
- public function update(Google_Profile $postBody, $optParams = array()) {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Profile($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns the profile information for the authenticated user. (profiles.get)
- *
- * @param array $optParams Optional parameters.
- * @return Google_Profile
- */
- public function get($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Profile($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "featured" collection of methods.
- * Typical usage is:
- *
- * $moderatorService = new Google_ModeratorService(...);
- * $featured = $moderatorService->featured;
- *
- */
- class Google_FeaturedServiceResource extends Google_Service_Resource {
-
-
- }
-
- /**
- * The "series" collection of methods.
- * Typical usage is:
- *
- * $moderatorService = new Google_ModeratorService(...);
- * $series = $moderatorService->series;
- *
- */
- class Google_FeaturedSeriesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Lists the featured series. (series.list)
- *
- * @param array $optParams Optional parameters.
- * @return Google_SeriesList
- */
- public function listFeaturedSeries($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SeriesList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "myrecent" collection of methods.
- * Typical usage is:
- *
- * $moderatorService = new Google_ModeratorService(...);
- * $myrecent = $moderatorService->myrecent;
- *
- */
- class Google_MyrecentServiceResource extends Google_Service_Resource {
-
-
- }
-
- /**
- * The "series" collection of methods.
- * Typical usage is:
- *
- * $moderatorService = new Google_ModeratorService(...);
- * $series = $moderatorService->series;
- *
- */
- class Google_MyrecentSeriesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Lists the series the authenticated user has visited. (series.list)
- *
- * @param array $optParams Optional parameters.
- * @return Google_SeriesList
- */
- public function listMyrecentSeries($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SeriesList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "my" collection of methods.
- * Typical usage is:
- *
- * $moderatorService = new Google_ModeratorService(...);
- * $my = $moderatorService->my;
- *
- */
- class Google_MyServiceResource extends Google_Service_Resource {
-
-
- }
-
- /**
- * The "series" collection of methods.
- * Typical usage is:
- *
- * $moderatorService = new Google_ModeratorService(...);
- * $series = $moderatorService->series;
- *
- */
- class Google_MySeriesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Lists all series created by the authenticated user. (series.list)
- *
- * @param array $optParams Optional parameters.
- * @return Google_SeriesList
- */
- public function listMySeries($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SeriesList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "submissions" collection of methods.
- * Typical usage is:
- *
- * $moderatorService = new Google_ModeratorService(...);
- * $submissions = $moderatorService->submissions;
- *
- */
- class Google_SubmissionsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Inserts a new submission in the specified topic within the specified series. (submissions.insert)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param string $topicId The decimal ID of the Topic within the Series.
- * @param Google_Submission $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param string unauthToken User identifier for unauthenticated usage mode
- * @opt_param bool anonymous Set to true to mark the new submission as anonymous.
- * @return Google_Submission
- */
- public function insert($seriesId, $topicId, Google_Submission $postBody, $optParams = array()) {
- $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Submission($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns the specified submission within the specified series. (submissions.get)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param string $submissionId The decimal ID of the Submission within the Series.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string lang The language code for the language the client prefers results in.
- * @opt_param bool includeVotes Specifies whether to include the current user's vote
- * @return Google_Submission
- */
- public function get($seriesId, $submissionId, $optParams = array()) {
- $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Submission($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for Google_Moderator (v1).
- *
- *
- * $oauth2Service = new Google_Oauth2Service(...);
- * $v2 = $oauth2Service->v2;
- *
- */
- class Google_UserinfoV2ServiceResource extends Google_Service_Resource {
-
-
- }
-
- /**
- * The "me" collection of methods.
- * Typical usage is:
- *
- * $oauth2Service = new Google_Oauth2Service(...);
- * $me = $oauth2Service->me;
- *
- */
- class Google_UserinfoV2MeServiceResource extends Google_Service_Resource {
-
-
- /**
- * (me.get)
- *
- * @param array $optParams Optional parameters.
- * @return Google_Userinfo
- */
- public function get($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Userinfo($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for Google_Oauth2 (v2).
- *
- *
- * $orkutService = new Google_OrkutService(...);
- * $activities = $orkutService->activities;
- *
- */
- class Google_ActivitiesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Retrieves a list of activities. (activities.list)
- *
- * @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_ActivityList
- */
- public function listActivities($userId, $collection, $optParams = array()) {
- $params = array('userId' => $userId, 'collection' => $collection);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_ActivityList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
- /**
- * The "communityPollComments" collection of methods.
- * Typical usage is:
- *
- * $orkutService = new Google_OrkutService(...);
- * $communityPollComments = $orkutService->communityPollComments;
- *
- */
- class Google_CommunityPollCommentsServiceResource 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_CommunityPollComment
- */
- public function insert($communityId, $pollId, Google_CommunityPollComment $postBody, $optParams = array()) {
- $params = array('communityId' => $communityId, 'pollId' => $pollId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_CommunityPollComment($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves the comments of a community poll. (communityPollComments.list)
- *
- * @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_CommunityPollCommentList
- */
- public function listCommunityPollComments($communityId, $pollId, $optParams = array()) {
- $params = array('communityId' => $communityId, 'pollId' => $pollId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CommunityPollCommentList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "communityPolls" collection of methods.
- * Typical usage is:
- *
- * $orkutService = new Google_OrkutService(...);
- * $communityPolls = $orkutService->communityPolls;
- *
- */
- class Google_CommunityPollsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Retrieves the polls of a community. (communityPolls.list)
- *
- * @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_CommunityPollList
- */
- public function listCommunityPolls($communityId, $optParams = array()) {
- $params = array('communityId' => $communityId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CommunityPollList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_CommunityPoll
- */
- public function get($communityId, $pollId, $optParams = array()) {
- $params = array('communityId' => $communityId, 'pollId' => $pollId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_CommunityPoll($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "communityMessages" collection of methods.
- * Typical usage is:
- *
- * $orkutService = new Google_OrkutService(...);
- * $communityMessages = $orkutService->communityMessages;
- *
- */
- class Google_CommunityMessagesServiceResource extends Google_Service_Resource {
-
-
- /**
- * 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_CommunityMessage
- */
- public function insert($communityId, $topicId, Google_CommunityMessage $postBody, $optParams = array()) {
- $params = array('communityId' => $communityId, 'topicId' => $topicId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_CommunityMessage($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves the messages of a topic of a community. (communityMessages.list)
- *
- * @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_CommunityMessageList
- */
- public function listCommunityMessages($communityId, $topicId, $optParams = array()) {
- $params = array('communityId' => $communityId, 'topicId' => $topicId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CommunityMessageList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
- /**
- * The "communityTopics" collection of methods.
- * Typical usage is:
- *
- * $orkutService = new Google_OrkutService(...);
- * $communityTopics = $orkutService->communityTopics;
- *
- */
- class Google_CommunityTopicsServiceResource extends Google_Service_Resource {
-
-
- /**
- * 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_CommunityTopic
- */
- public function insert($communityId, Google_CommunityTopic $postBody, $optParams = array()) {
- $params = array('communityId' => $communityId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_CommunityTopic($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_CommunityTopic
- */
- public function get($communityId, $topicId, $optParams = array()) {
- $params = array('communityId' => $communityId, 'topicId' => $topicId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_CommunityTopic($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves the topics of a community. (communityTopics.list)
- *
- * @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_CommunityTopicList
- */
- public function listCommunityTopics($communityId, $optParams = array()) {
- $params = array('communityId' => $communityId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CommunityTopicList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
- /**
- * The "comments" collection of methods.
- * Typical usage is:
- *
- * $orkutService = new Google_OrkutService(...);
- * $comments = $orkutService->comments;
- *
- */
- class Google_CommentsServiceResource extends Google_Service_Resource {
-
-
- /**
- * 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_Comment
- */
- public function insert($activityId, Google_Comment $postBody, $optParams = array()) {
- $params = array('activityId' => $activityId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Comment($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Comment
- */
- public function get($commentId, $optParams = array()) {
- $params = array('commentId' => $commentId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Comment($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves a list of comments, possibly filtered. (comments.list)
- *
- * @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_CommentList
- */
- public function listComments($activityId, $optParams = array()) {
- $params = array('activityId' => $activityId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CommentList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
- /**
- * The "acl" collection of methods.
- * Typical usage is:
- *
- * $orkutService = new Google_OrkutService(...);
- * $acl = $orkutService->acl;
- *
- */
- class Google_AclServiceResource 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
- /**
- * The "communityRelated" collection of methods.
- * Typical usage is:
- *
- * $orkutService = new Google_OrkutService(...);
- * $communityRelated = $orkutService->communityRelated;
- *
- */
- class Google_CommunityRelatedServiceResource extends Google_Service_Resource {
-
-
- /**
- * Retrieves the communities related to another one. (communityRelated.list)
- *
- * @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_CommunityList
- */
- public function listCommunityRelated($communityId, $optParams = array()) {
- $params = array('communityId' => $communityId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CommunityList($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "scraps" collection of methods.
- * Typical usage is:
- *
- * $orkutService = new Google_OrkutService(...);
- * $scraps = $orkutService->scraps;
- *
- */
- class Google_ScrapsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Creates a new scrap. (scraps.insert)
- *
- * @param Google_Activity $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Activity
- */
- public function insert(Google_Activity $postBody, $optParams = array()) {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Activity($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "communityPollVotes" collection of methods.
- * Typical usage is:
- *
- * $orkutService = new Google_OrkutService(...);
- * $communityPollVotes = $orkutService->communityPollVotes;
- *
- */
- class Google_CommunityPollVotesServiceResource 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_CommunityPollVote
- */
- public function insert($communityId, $pollId, Google_CommunityPollVote $postBody, $optParams = array()) {
- $params = array('communityId' => $communityId, 'pollId' => $pollId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_CommunityPollVote($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "communities" collection of methods.
- * Typical usage is:
- *
- * $orkutService = new Google_OrkutService(...);
- * $communities = $orkutService->communities;
- *
- */
- class Google_CommunitiesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Retrieves the list of communities the current user is a member of. (communities.list)
- *
- * @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_CommunityList
- */
- public function listCommunities($userId, $optParams = array()) {
- $params = array('userId' => $userId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_CommunityList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Community
- */
- public function get($communityId, $optParams = array()) {
- $params = array('communityId' => $communityId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Community($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "communityFollow" collection of methods.
- * Typical usage is:
- *
- * $orkutService = new Google_OrkutService(...);
- * $communityFollow = $orkutService->communityFollow;
- *
- */
- class Google_CommunityFollowServiceResource extends Google_Service_Resource {
-
-
- /**
- * 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_CommunityMembers
- */
- public function insert($communityId, $userId, $optParams = array()) {
- $params = array('communityId' => $communityId, 'userId' => $userId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_CommunityMembers($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
- /**
- * The "activityVisibility" collection of methods.
- * Typical usage is:
- *
- * $orkutService = new Google_OrkutService(...);
- * $activityVisibility = $orkutService->activityVisibility;
- *
- */
- class Google_ActivityVisibilityServiceResource extends Google_Service_Resource {
-
-
- /**
- * 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_Visibility
- */
- public function patch($activityId, Google_Visibility $postBody, $optParams = array()) {
- $params = array('activityId' => $activityId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Visibility($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Visibility
- */
- public function update($activityId, Google_Visibility $postBody, $optParams = array()) {
- $params = array('activityId' => $activityId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Visibility($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Visibility
- */
- public function get($activityId, $optParams = array()) {
- $params = array('activityId' => $activityId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Visibility($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "badges" collection of methods.
- * Typical usage is:
- *
- * $orkutService = new Google_OrkutService(...);
- * $badges = $orkutService->badges;
- *
- */
- class Google_BadgesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Retrieves the list of visible badges of a user. (badges.list)
- *
- * @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_BadgeList
- */
- public function listBadges($userId, $optParams = array()) {
- $params = array('userId' => $userId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_BadgeList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Badge
- */
- public function get($userId, $badgeId, $optParams = array()) {
- $params = array('userId' => $userId, 'badgeId' => $badgeId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Badge($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "counters" collection of methods.
- * Typical usage is:
- *
- * $orkutService = new Google_OrkutService(...);
- * $counters = $orkutService->counters;
- *
- */
- class Google_CountersServiceResource extends Google_Service_Resource {
-
-
- /**
- * Retrieves the counters of a user. (counters.list)
- *
- * @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_Counters
- */
- public function listCounters($userId, $optParams = array()) {
- $params = array('userId' => $userId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Counters($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for Google_Orkut (v2).
- *
- *
- * $predictionService = new Google_PredictionService(...);
- * $hostedmodels = $predictionService->hostedmodels;
- *
- */
- class Google_HostedmodelsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Submit input and request an output against a hosted model. (hostedmodels.predict)
- *
- * @param string $hostedModelName The name of a hosted model.
- * @param Google_Input $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Output
- */
- public function predict($hostedModelName, Google_Input $postBody, $optParams = array()) {
- $params = array('hostedModelName' => $hostedModelName, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('predict', array($params));
- if ($this->useObjects()) {
- return new Google_Output($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for Google_Prediction (v1.4).
- *
- *
- * $storageService = new Google_StorageService(...);
- * $bucketAccessControls = $storageService->bucketAccessControls;
- *
- */
- class Google_BucketAccessControlsServiceResource extends Google_Service_Resource {
-
-
- /**
- * 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_BucketAccessControl
- */
- public function insert($bucket, Google_BucketAccessControl $postBody, $optParams = array()) {
- $params = array('bucket' => $bucket, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_BucketAccessControl($data);
- } else {
- return $data;
- }
- }
- /**
- * 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, group-groupId, allUsers, or allAuthenticatedUsers.
- * @param array $optParams Optional parameters.
- * @return Google_BucketAccessControl
- */
- public function get($bucket, $entity, $optParams = array()) {
- $params = array('bucket' => $bucket, 'entity' => $entity);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_BucketAccessControl($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves ACL entries on the specified bucket. (bucketAccessControls.list)
- *
- * @param string $bucket Name of a bucket.
- * @param array $optParams Optional parameters.
- * @return Google_BucketAccessControls
- */
- public function listBucketAccessControls($bucket, $optParams = array()) {
- $params = array('bucket' => $bucket);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_BucketAccessControls($data);
- } else {
- return $data;
- }
- }
- /**
- * 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, group-groupId, allUsers, or allAuthenticatedUsers.
- * @param Google_BucketAccessControl $postBody
- * @param array $optParams Optional parameters.
- * @return Google_BucketAccessControl
- */
- public function update($bucket, $entity, Google_BucketAccessControl $postBody, $optParams = array()) {
- $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_BucketAccessControl($data);
- } else {
- return $data;
- }
- }
- /**
- * 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, group-groupId, allUsers, or allAuthenticatedUsers.
- * @param Google_BucketAccessControl $postBody
- * @param array $optParams Optional parameters.
- * @return Google_BucketAccessControl
- */
- public function patch($bucket, $entity, Google_BucketAccessControl $postBody, $optParams = array()) {
- $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_BucketAccessControl($data);
- } else {
- return $data;
- }
- }
- /**
- * 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, group-groupId, 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
- /**
- * The "objects" collection of methods.
- * Typical usage is:
- *
- * $storageService = new Google_StorageService(...);
- * $objects = $storageService->objects;
- *
- */
- class Google_ObjectsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Stores new data blobs and associated 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 name Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any.
- * @opt_param string projection Set of properties to return. Defaults to no_acl, unless the object resource specifies the acl property, when it defaults to full.
- * @return Google_StorageObject
- */
- public function insert($bucket, Google_StorageObject $postBody, $optParams = array()) {
- $params = array('bucket' => $bucket, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_StorageObject($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves objects or their associated metadata. (objects.get)
- *
- * @param string $bucket Name of the bucket in which the object resides.
- * @param string $object Name of the object.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string projection Set of properties to return. Defaults to no_acl.
- * @return Google_StorageObject
- */
- public function get($bucket, $object, $optParams = array()) {
- $params = array('bucket' => $bucket, 'object' => $object);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_StorageObject($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves a list of objects matching the criteria. (objects.list)
- *
- * @param string $bucket Name of the bucket in which to look for objects.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string max-results Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.
- * @opt_param string projection Set of properties to return. Defaults to no_acl.
- * @opt_param string prefix Filter results to objects whose names begin with this prefix.
- * @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_Objects
- */
- public function listObjects($bucket, $optParams = array()) {
- $params = array('bucket' => $bucket);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Objects($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates a data blob's associated 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 projection Set of properties to return. Defaults to full.
- * @return Google_StorageObject
- */
- public function update($bucket, $object, Google_StorageObject $postBody, $optParams = array()) {
- $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_StorageObject($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates a data blob's associated 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 projection Set of properties to return. Defaults to full.
- * @return Google_StorageObject
- */
- public function patch($bucket, $object, Google_StorageObject $postBody, $optParams = array()) {
- $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_StorageObject($data);
- } else {
- return $data;
- }
- }
- /**
- * Deletes data blobs and associated metadata. (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.
- */
- public function delete($bucket, $object, $optParams = array()) {
- $params = array('bucket' => $bucket, 'object' => $object);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
- /**
- * The "buckets" collection of methods.
- * Typical usage is:
- *
- * $storageService = new Google_StorageService(...);
- * $buckets = $storageService->buckets;
- *
- */
- class Google_BucketsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Creates a new bucket. (buckets.insert)
- *
- * @param Google_Bucket $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param string projection Set of properties to return. Defaults to no_acl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.
- * @return Google_Bucket
- */
- public function insert(Google_Bucket $postBody, $optParams = array()) {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Bucket($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns metadata for the specified bucket. (buckets.get)
- *
- * @param string $bucket Name of a bucket.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string projection Set of properties to return. Defaults to no_acl.
- * @return Google_Bucket
- */
- public function get($bucket, $optParams = array()) {
- $params = array('bucket' => $bucket);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Bucket($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves a list of buckets for a given project. (buckets.list)
- *
- * @param string $projectId A valid API project identifier.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string max-results Maximum number of buckets to return.
- * @opt_param string pageToken A previously-returned page token representing part of the larger set of results to view.
- * @opt_param string projection Set of properties to return. Defaults to no_acl.
- * @return Google_Buckets
- */
- public function listBuckets($projectId, $optParams = array()) {
- $params = array('projectId' => $projectId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Buckets($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates a bucket. (buckets.update)
- *
- * @param string $bucket Name of a bucket.
- * @param Google_Bucket $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param string projection Set of properties to return. Defaults to full.
- * @return Google_Bucket
- */
- public function update($bucket, Google_Bucket $postBody, $optParams = array()) {
- $params = array('bucket' => $bucket, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Bucket($data);
- } else {
- return $data;
- }
- }
- /**
- * Updates a bucket. 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 projection Set of properties to return. Defaults to full.
- * @return Google_Bucket
- */
- public function patch($bucket, Google_Bucket $postBody, $optParams = array()) {
- $params = array('bucket' => $bucket, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Bucket($data);
- } else {
- return $data;
- }
- }
- /**
- * Deletes an empty bucket. (buckets.delete)
- *
- * @param string $bucket Name of a bucket.
- * @param array $optParams Optional parameters.
- */
- public function delete($bucket, $optParams = array()) {
- $params = array('bucket' => $bucket);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
-/**
- * Service definition for Google_Storage (v1beta1).
- *
- *
- * $taskqueueService = new Google_TaskqueueService(...);
- * $tasks = $taskqueueService->tasks;
- *
- */
- class Google_TasksServiceResource extends Google_Service_Resource {
-
-
- /**
- * Insert a new task in a TaskQueue (tasks.insert)
- *
- * @param string $project The project under which the queue lies
- * @param string $taskqueue The taskqueue to insert the task into
- * @param Google_Task $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Task
- */
- public function insert($project, $taskqueue, Google_Task $postBody, $optParams = array()) {
- $params = array('project' => $project, 'taskqueue' => $taskqueue, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Task($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_Task
- */
- public function get($project, $taskqueue, $task, $optParams = array()) {
- $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Task($data);
- } else {
- return $data;
- }
- }
- /**
- * List Tasks in a TaskQueue (tasks.list)
- *
- * @param string $project The project under which the queue lies.
- * @param string $taskqueue The id of the taskqueue to list tasks from.
- * @param array $optParams Optional parameters.
- * @return Google_Tasks2
- */
- public function listTasks($project, $taskqueue, $optParams = array()) {
- $params = array('project' => $project, 'taskqueue' => $taskqueue);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_Tasks2($data);
- } else {
- return $data;
- }
- }
- /**
- * Update tasks that are leased out of a TaskQueue. (tasks.update)
- *
- * @param string $project The project under which the queue lies.
- * @param string $taskqueue
- * @param string $task
- * @param int $newLeaseSeconds The new lease in seconds.
- * @param Google_Task $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Task
- */
- public function update($project, $taskqueue, $task, $newLeaseSeconds, Google_Task $postBody, $optParams = array()) {
- $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task, 'newLeaseSeconds' => $newLeaseSeconds, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Task($data);
- } else {
- return $data;
- }
- }
- /**
- * Update tasks that are leased out of a TaskQueue. 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_Task
- */
- public function patch($project, $taskqueue, $task, $newLeaseSeconds, Google_Task $postBody, $optParams = array()) {
- $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task, 'newLeaseSeconds' => $newLeaseSeconds, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_Task($data);
- } else {
- return $data;
- }
- }
- /**
- * Delete a task from a TaskQueue. (tasks.delete)
- *
- * @param string $project The project under which the queue lies.
- * @param string $taskqueue The taskqueue to delete a task from.
- * @param string $task The id of the task to delete.
- * @param array $optParams Optional parameters.
- */
- public function delete($project, $taskqueue, $task, $optParams = array()) {
- $params = array('project' => $project, 'taskqueue' => $taskqueue, 'task' => $task);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * 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_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);
- $data = $this->__call('lease', array($params));
- if ($this->useObjects()) {
- return new Google_Tasks($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for Google_Taskqueue (v1beta2).
- *
- *
- * $tasksService = new Google_TasksService(...);
- * $tasklists = $tasksService->tasklists;
- *
- */
- class Google_TasklistsServiceResource extends Google_Service_Resource {
-
-
- /**
- * 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_TaskList
- */
- public function insert(Google_TaskList $postBody, $optParams = array()) {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_TaskList($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns the authenticated user's specified task list. (tasklists.get)
- *
- * @param string $tasklist Task list identifier.
- * @param array $optParams Optional parameters.
- * @return Google_TaskList
- */
- public function get($tasklist, $optParams = array()) {
- $params = array('tasklist' => $tasklist);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_TaskList($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns all the authenticated user's task lists. (tasklists.list)
- *
- * @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_TaskLists
- */
- public function listTasklists($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_TaskLists($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_TaskList
- */
- public function update($tasklist, Google_TaskList $postBody, $optParams = array()) {
- $params = array('tasklist' => $tasklist, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_TaskList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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_TaskList
- */
- public function patch($tasklist, Google_TaskList $postBody, $optParams = array()) {
- $params = array('tasklist' => $tasklist, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_TaskList($data);
- } else {
- return $data;
- }
- }
- /**
- * 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }
-
-/**
- * Service definition for Google_Tasks (v1).
- *
- *
- * $translateService = new Google_TranslateService(...);
- * $detections = $translateService->detections;
- *
- */
- class Google_DetectionsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Detect the language of text. (detections.list)
- *
- * @param string $q The text to detect
- * @param array $optParams Optional parameters.
- * @return Google_DetectionsListResponse
- */
- public function listDetections($q, $optParams = array()) {
- $params = array('q' => $q);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_DetectionsListResponse($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "translations" collection of methods.
- * Typical usage is:
- *
- * $translateService = new Google_TranslateService(...);
- * $translations = $translateService->translations;
- *
- */
- class Google_TranslationsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Returns text translations from one language to another. (translations.list)
- *
- * @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_TranslationsListResponse
- */
- public function listTranslations($q, $target, $optParams = array()) {
- $params = array('q' => $q, 'target' => $target);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_TranslationsListResponse($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for Google_Translate (v2).
- *
- *
- * $youtubeService = new Google_YouTubeService(...);
- * $channels = $youtubeService->channels;
- *
- */
- class Google_ChannelsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Returns a collection of zero or more channel resources that match the request criteria.
- * (channels.list)
- *
- * @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, 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 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 string categoryId The categoryId parameter specifies a YouTube guide category, thereby requesting YouTube channels associated with that category.
- * @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 maxResults The maxResults parameter specifies the maximum number of items that should be returned in the result set.
- * @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 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 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.
- * @return Google_ChannelListResponse
- */
- public function listChannels($part, $optParams = array()) {
- $params = array('part' => $part);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_ChannelListResponse($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "guideCategories" collection of methods.
- * Typical usage is:
- *
- * $youtubeService = new Google_YouTubeService(...);
- * $guideCategories = $youtubeService->guideCategories;
- *
- */
- class Google_GuideCategoriesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Returns a list of categories that can be associated with YouTube channels. (guideCategories.list)
- *
- * @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 hl The hl parameter specifies the language that will be used for text values in the API response.
- * @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 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.
- * @return Google_GuideCategoryListResponse
- */
- public function listGuideCategories($part, $optParams = array()) {
- $params = array('part' => $part);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_GuideCategoryListResponse($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "liveBroadcasts" collection of methods.
- * Typical usage is:
- *
- * $youtubeService = new Google_YouTubeService(...);
- * $liveBroadcasts = $youtubeService->liveBroadcasts;
- *
- */
- class Google_LiveBroadcastsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Bind a YouTube live broadcast to a stream. (liveBroadcasts.bind)
- *
- * @param string $id ID of the broadcast to which the stream will be bound
- * @param string $part Live broadcast parts to be returned in the response. Valid values are: id, snippet, status, slateSettings, contentDetails.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string streamId ID of the stream to bind to the broadcast
- * @return Google_LiveBroadcast
- */
- public function bind($id, $part, $optParams = array()) {
- $params = array('id' => $id, 'part' => $part);
- $params = array_merge($params, $optParams);
- $data = $this->__call('bind', array($params));
- if ($this->useObjects()) {
- return new Google_LiveBroadcast($data);
- } else {
- return $data;
- }
- }
- /**
- * Delete a YouTube live 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.
- */
- public function delete($id, $optParams = array()) {
- $params = array('id' => $id);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * Insert a YouTube live broadcast. (liveBroadcasts.insert)
- *
- * @param string $part Live broadcast parts to be set for the broadcast as well as included in the returned response. Valid values are: snippet, status, slateSettings, contentDetails.
- * @param Google_LiveBroadcast $postBody
- * @param array $optParams Optional parameters.
- * @return Google_LiveBroadcast
- */
- public function insert($part, Google_LiveBroadcast $postBody, $optParams = array()) {
- $params = array('part' => $part, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_LiveBroadcast($data);
- } else {
- return $data;
- }
- }
- /**
- * Browse the YouTube broadcast collection. (liveBroadcasts.list)
- *
- * @param string $part Live broadcast parts to include in the returned response. Valid values are: id, snippet, status, slateSettings, contentDetails.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string broadcastStatus Filter to only return broadcasts with the given status by the authenticated user.
- * @opt_param string id IDs of the live broadcasts to be returned.
- * @opt_param string maxResults Maximum number of results to return
- * @opt_param bool mine Filter to only return broadcasts owned by authenticated user.
- * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the request is be on behalf of
- * @opt_param string pageToken Token for the page selection.
- * @return Google_LiveBroadcastList
- */
- public function listLiveBroadcasts($part, $optParams = array()) {
- $params = array('part' => $part);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_LiveBroadcastList($data);
- } else {
- return $data;
- }
- }
- /**
- * Change the broadcasting status of a YouTube live broadcast and start all the processes associated
- * with it. (liveBroadcasts.transition)
- *
- * @param string $broadcastStatus Desired broadcast status.
- * @param string $id ID of the broadcast to change status
- * @param string $part Live broadcast parts to be returned in the response. Valid values are: id, snippet, status, slateSettings, contentDetails.
- * @param array $optParams Optional parameters.
- * @return Google_LiveBroadcast
- */
- public function transition($broadcastStatus, $id, $part, $optParams = array()) {
- $params = array('broadcastStatus' => $broadcastStatus, 'id' => $id, 'part' => $part);
- $params = array_merge($params, $optParams);
- $data = $this->__call('transition', array($params));
- if ($this->useObjects()) {
- return new Google_LiveBroadcast($data);
- } else {
- return $data;
- }
- }
- /**
- * Update a YouTube live broadcast. (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 names that you can include in the parameter value are id, snippet, status, slateSettings, contentDetails.
- * @param Google_LiveBroadcast $postBody
- * @param array $optParams Optional parameters.
- * @return Google_LiveBroadcast
- */
- public function update($part, Google_LiveBroadcast $postBody, $optParams = array()) {
- $params = array('part' => $part, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_LiveBroadcast($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "liveStreams" collection of methods.
- * Typical usage is:
- *
- * $youtubeService = new Google_YouTubeService(...);
- * $liveStreams = $youtubeService->liveStreams;
- *
- */
- class Google_LiveStreamsServiceResource extends Google_Service_Resource {
-
-
- /**
- * Delete a live 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.
- */
- public function delete($id, $optParams = array()) {
- $params = array('id' => $id);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * Insert a YouTube live stream. (liveStreams.insert)
- *
- * @param string $part Live stream parts to include in the returned response. Valid values are: id, snippet, cdn, status.
- * @param Google_LiveStream $postBody
- * @param array $optParams Optional parameters.
- * @return Google_LiveStream
- */
- public function insert($part, Google_LiveStream $postBody, $optParams = array()) {
- $params = array('part' => $part, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_LiveStream($data);
- } else {
- return $data;
- }
- }
- /**
- * Browse the YouTube live stream collection. (liveStreams.list)
- *
- * @param string $part Live stream parts to include in the returned response. Valid values are: id, snippet, cdn, status.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string id IDs of the live streams to be returned.
- * @opt_param string maxResults Maximum number of results to return
- * @opt_param bool mine Filter to only live streams owned by authenticated user.
- * @opt_param string onBehalfOf ID of the Google+ Page for the channel that the request is to be on behalf of
- * @opt_param string pageToken Token for the page selection.
- * @return Google_LiveStreamList
- */
- public function listLiveStreams($part, $optParams = array()) {
- $params = array('part' => $part);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_LiveStreamList($data);
- } else {
- return $data;
- }
- }
- /**
- * Update a YouTube live stream. (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 names that you can include in the parameter value are id, snippet, cdn, status.
- * @param Google_LiveStream $postBody
- * @param array $optParams Optional parameters.
- * @return Google_LiveStream
- */
- public function update($part, Google_LiveStream $postBody, $optParams = array()) {
- $params = array('part' => $part, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_LiveStream($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "playlistItems" collection of methods.
- * Typical usage is:
- *
- * $youtubeService = new Google_YouTubeService(...);
- * $playlistItems = $youtubeService->playlistItems;
- *
- */
- class Google_PlaylistItemsServiceResource 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * 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 and contentDetails.
- * @param Google_PlaylistItem $postBody
- * @param array $optParams Optional parameters.
- * @return Google_PlaylistItem
- */
- public function insert($part, Google_PlaylistItem $postBody, $optParams = array()) {
- $params = array('part' => $part, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_PlaylistItem($data);
- } else {
- return $data;
- }
- }
- /**
- * 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.list)
- *
- * @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, 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 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 id The id parameter specifies a comma-separated list of one or more unique playlist item IDs.
- * @opt_param string maxResults USE_DESCRIPTION --- channels:list:maxResults
- * @opt_param string pageToken USE_DESCRIPTION --- channels:list:pageToken
- * @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.
- * @return Google_PlaylistItemListResponse
- */
- public function listPlaylistItems($part, $optParams = array()) {
- $params = array('part' => $part);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_PlaylistItemListResponse($data);
- } else {
- return $data;
- }
- }
- /**
- * 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 and contentDetails.
- 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_PlaylistItem
- */
- public function update($part, Google_PlaylistItem $postBody, $optParams = array()) {
- $params = array('part' => $part, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_PlaylistItem($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "playlists" collection of methods.
- * Typical usage is:
- *
- * $youtubeService = new Google_YouTubeService(...);
- * $playlists = $youtubeService->playlists;
- *
- */
- class Google_PlaylistsServiceResource 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.
- */
- public function delete($id, $optParams = array()) {
- $params = array('id' => $id);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * 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.
- * @return Google_Playlist
- */
- public function insert($part, Google_Playlist $postBody, $optParams = array()) {
- $params = array('part' => $part, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Playlist($data);
- } else {
- return $data;
- }
- }
- /**
- * 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.list)
- *
- * @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, 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 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 channelId This value indicates that the API should only return the specified channel's playlists.
- * @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.
- * @opt_param string maxResults USE_DESCRIPTION --- channels:list:maxResults
- * @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 pageToken USE_DESCRIPTION --- channels:list:pageToken
- * @return Google_PlaylistListResponse
- */
- public function listPlaylists($part, $optParams = array()) {
- $params = array('part' => $part);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_PlaylistListResponse($data);
- } else {
- return $data;
- }
- }
- /**
- * 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.
- * @return Google_Playlist
- */
- public function update($part, Google_Playlist $postBody, $optParams = array()) {
- $params = array('part' => $part, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Playlist($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "search" collection of methods.
- * Typical usage is:
- *
- * $youtubeService = new Google_YouTubeService(...);
- * $search = $youtubeService->search;
- *
- */
- class Google_SearchServiceResource 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.list)
- *
- * @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 channelId The channelId parameter indicates that the API response should only contain resources created by the channel
- * @opt_param string maxResults USE_DESCRIPTION --- channels:list:maxResults
- * @opt_param string order The order parameter specifies the method that will be used to order resources in the API response.
- * @opt_param string pageToken USE_DESCRIPTION --- channels:list:pageToken
- * @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 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 q The q parameter specifies the query term to search for.
- * @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 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 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 type The type parameter restricts a search query to only retrieve a particular type of resource.
- * @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 videoCategoryId The videoCategoryId parameter filters video search results based on their category.
- * @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 videoDimension The videoDimension parameter lets you restrict a search to only retrieve 2D or 3D videos.
- * @opt_param string videoDuration The videoDuration parameter filters video search results based on their duration.
- * @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 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 videoSyndicated The videoSyndicated parameter lets you to restrict a search to only videos that can be played outside youtube.com.
- * @return Google_SearchListResponse
- */
- public function listSearch($part, $optParams = array()) {
- $params = array('part' => $part);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SearchListResponse($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "subscriptions" collection of methods.
- * Typical usage is:
- *
- * $youtubeService = new Google_YouTubeService(...);
- * $subscriptions = $youtubeService->subscriptions;
- *
- */
- class Google_SubscriptionsServiceResource 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);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * 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_Subscription
- */
- public function insert($part, Google_Subscription $postBody, $optParams = array()) {
- $params = array('part' => $part, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Subscription($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns subscription resources that match the API request criteria. (subscriptions.list)
- *
- * @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 channelId The channelId parameter specifies a YouTube channel ID. The API will only return that channel's subscriptions.
- * @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 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.
- * @opt_param string maxResults USE_DESCRIPTION --- channels:list:maxResults
- * @opt_param bool mine Set this parameter's value to true to retrieve a feed of the authenticated user's subscriptions.
- * @opt_param string order The order parameter specifies the method that will be used to sort resources in the API response.
- * @opt_param string pageToken USE_DESCRIPTION --- channels:list:pageToken
- * @return Google_SubscriptionListResponse
- */
- public function listSubscriptions($part, $optParams = array()) {
- $params = array('part' => $part);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SubscriptionListResponse($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "videoCategories" collection of methods.
- * Typical usage is:
- *
- * $youtubeService = new Google_YouTubeService(...);
- * $videoCategories = $youtubeService->videoCategories;
- *
- */
- class Google_VideoCategoriesServiceResource extends Google_Service_Resource {
-
-
- /**
- * Returns a list of categories that can be associated with YouTube videos. (videoCategories.list)
- *
- * @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 hl The hl parameter specifies the language that should be used for text values in the API response.
- * @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 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.
- * @return Google_VideoCategoryListResponse
- */
- public function listVideoCategories($part, $optParams = array()) {
- $params = array('part' => $part);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_VideoCategoryListResponse($data);
- } else {
- return $data;
- }
- }
- }
-
- /**
- * The "videos" collection of methods.
- * Typical usage is:
- *
- * $youtubeService = new Google_YouTubeService(...);
- * $videos = $youtubeService->videos;
- *
- */
- class Google_VideosServiceResource 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.
- */
- public function delete($id, $optParams = array()) {
- $params = array('id' => $id);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- /**
- * 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, player, statistics, status, 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.
- * @return Google_Video
- */
- public function insert($part, Google_Video $postBody, $optParams = array()) {
- $params = array('part' => $part, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Video($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns a list of videos that match the API request parameters. (videos.list)
- *
- * @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.
- * @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, player, statistics, status, 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.
- * @return Google_VideoListResponse
- */
- public function listVideos($id, $part, $optParams = array()) {
- $params = array('id' => $id, 'part' => $part);
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_VideoListResponse($data);
- } else {
- return $data;
- }
- }
- /**
- * 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, player, statistics, status, 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.
- * @return Google_Video
- */
- public function update($part, Google_Video $postBody, $optParams = array()) {
- $params = array('part' => $part, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_Video($data);
- } else {
- return $data;
- }
- }
- }
-
-/**
- * Service definition for Google_YouTube (v3).
- *
- * {$result['object']['content']}\n";
-}
-exit;
-
-if (isset($_GET['logout'])) {
- unset($_SESSION['token']);
-}
-
-if (isset($_GET['code'])) {
- if (strval($_SESSION['state']) !== strval($_GET['state'])) {
- die("The session state did not match.");
- }
- $client->authenticate();
- $_SESSION['token'] = $client->getAccessToken();
- $redirect = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
- header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL));
-}
-
-if (isset($_SESSION['token'])) {
- $client->setAccessToken($_SESSION['token']);
-}
-
-if ($client->getAccessToken()) {
- $me = $plus->people->get('me');
- print "Your Profile: " . print_r($me, true) . "
";
-
- $params = array('maxResults' => 100);
- $activities = $plus->activities->listActivities('me', 'public', $params);
- print "Your Activities: " . print_r($activities, true) . "
";
-
- $params = array(
- 'orderBy' => 'best',
- 'maxResults' => '20',
- );
- $results = $plus->activities->search('Google+ API', $params);
- foreach($results['items'] as $result) {
- print "Search Result: {$result['object']['content']}\n";
- }
-
- // The access token may have been updated lazily.
- $_SESSION['token'] = $client->getAccessToken();
-} else {
- $state = mt_rand();
- $client->setState($state);
- $_SESSION['state'] = $state;
-
- $authUrl = $client->createAuthUrl();
- print "Connect Me!";
}
\ No newline at end of file
From 0c69b87dd348a289139a0753e87cf5b79b846072 Mon Sep 17 00:00:00 2001
From: ianbarber
+ * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_AdExchangeSeller extends Google_Service { + public $adclients; + public $adunits; + public $adunits_customchannels; + public $customchannels; + public $customchannels_adunits; + 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) { + $this->servicePath = 'adexchangeseller/v1/'; + $this->version = 'v1'; + $this->serviceName = 'adexchangeseller'; + + $client->addService($this->serviceName, $this->version); + $this->adclients = new Google_Service_AdExchangeSeller_Adclients_Resource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"id": "adexchangeseller.adclients.list", "path": "adclients", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdClients"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true)); + $this->adunits = new Google_Service_AdExchangeSeller_Adunits_Resource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"get": {"id": "adexchangeseller.adunits.get", "path": "adclients/{adClientId}/adunits/{adUnitId}", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}, "list": {"id": "adexchangeseller.adunits.list", "path": "adclients/{adClientId}/adunits", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true)); + $this->adunits_customchannels = new Google_Service_AdExchangeSeller_AdunitsCustomchannels_Resource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"id": "adexchangeseller.adunits.customchannels.list", "path": "adclients/{adClientId}/adunits/{adUnitId}/customchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true)); + $this->customchannels = new Google_Service_AdExchangeSeller_Customchannels_Resource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"get": {"id": "adexchangeseller.customchannels.get", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}, "list": {"id": "adexchangeseller.customchannels.list", "path": "adclients/{adClientId}/customchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true)); + $this->customchannels_adunits = new Google_Service_AdExchangeSeller_CustomchannelsAdunits_Resource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"id": "adexchangeseller.customchannels.adunits.list", "path": "adclients/{adClientId}/customchannels/{customChannelId}/adunits", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true)); + $this->reports = new Google_Service_AdExchangeSeller_Reports_Resource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"id": "adexchangeseller.reports.generate", "path": "reports", "httpMethod": "GET", "parameters": {"dimension": {"type": "string", "repeated": true, "location": "query"}, "endDate": {"type": "string", "required": true, "location": "query"}, "filter": {"type": "string", "repeated": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "50000", "location": "query"}, "metric": {"type": "string", "repeated": true, "location": "query"}, "sort": {"type": "string", "repeated": true, "location": "query"}, "startDate": {"type": "string", "required": true, "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "Report"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"], "supportsMediaDownload": true}}}', true)); + $this->reports_saved = new Google_Service_AdExchangeSeller_ReportsSaved_Resource($this, $this->serviceName, 'saved', json_decode('{"methods": {"generate": {"id": "adexchangeseller.reports.saved.generate", "path": "reports/{savedReportId}", "httpMethod": "GET", "parameters": {"locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "50000", "location": "query"}, "savedReportId": {"type": "string", "required": true, "location": "path"}, "startIndex": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "Report"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}, "list": {"id": "adexchangeseller.reports.saved.list", "path": "reports/saved", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "SavedReports"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true)); + $this->urlchannels = new Google_Service_AdExchangeSeller_Urlchannels_Resource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"list": {"id": "adexchangeseller.urlchannels.list", "path": "adclients/{adClientId}/urlchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "UrlChannels"}, "scopes": ["https://www.googleapis.com/auth/adexchange.seller", "https://www.googleapis.com/auth/adexchange.seller.readonly"]}}}', true)); + + } +} + + + /** + * The "adclients" collection of methods. + * Typical usage is: + *
+ * $adexchangesellerService = new Google_AdExchangeSellerService(...);
+ * $adclients = $adexchangesellerService->adclients;
+ *
+ */
+ class Google_Service_AdExchangeSeller_Adclients_Resource extends Google_Service_Resource {
+
+
+ /**
+ * List all ad clients in this Ad Exchange account. (adclients.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
+ * @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.
+ * @return Google_Service_AdExchangeSeller_AdClients
+ */
+ public function listAdclients($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdExchangeSeller_AdClients($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "adunits" collection of methods.
+ * Typical usage is:
+ *
+ * $adexchangesellerService = new Google_AdExchangeSellerService(...);
+ * $adunits = $adexchangesellerService->adunits;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdExchangeSeller_AdUnit($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List all ad units in the specified ad client for this Ad Exchange account. (adunits.list)
+ *
+ * @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 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_AdExchangeSeller_AdUnits
+ */
+ public function listAdunits($adClientId, $optParams = array()) {
+ $params = array('adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdExchangeSeller_AdUnits($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "customchannels" collection of methods.
+ * Typical usage is:
+ *
+ * $adexchangesellerService = new Google_AdExchangeSellerService(...);
+ * $customchannels = $adexchangesellerService->customchannels;
+ *
+ */
+ class Google_Service_AdExchangeSeller_AdunitsCustomchannels_Resource extends Google_Service_Resource {
+
+
+ /**
+ * List all custom channels which the specified ad unit belongs to. (customchannels.list)
+ *
+ * @param string $adClientId Ad client which contains the ad unit.
+ * @param string $adUnitId Ad unit for which to list custom channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of custom channels to include in the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_AdExchangeSeller_CustomChannels
+ */
+ public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) {
+ $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdExchangeSeller_CustomChannels($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "customchannels" collection of methods.
+ * Typical usage is:
+ *
+ * $adexchangesellerService = new Google_AdExchangeSellerService(...);
+ * $customchannels = $adexchangesellerService->customchannels;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdExchangeSeller_CustomChannel($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List all custom channels in the specified ad client for this Ad Exchange account.
+ * (customchannels.list)
+ *
+ * @param string $adClientId Ad client for which to list custom channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of custom channels to include in the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_AdExchangeSeller_CustomChannels
+ */
+ public function listCustomchannels($adClientId, $optParams = array()) {
+ $params = array('adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdExchangeSeller_CustomChannels($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "adunits" collection of methods.
+ * Typical usage is:
+ *
+ * $adexchangesellerService = new Google_AdExchangeSellerService(...);
+ * $adunits = $adexchangesellerService->adunits;
+ *
+ */
+ class Google_Service_AdExchangeSeller_CustomchannelsAdunits_Resource extends Google_Service_Resource {
+
+
+ /**
+ * List all ad units in the specified custom channel. (adunits.list)
+ *
+ * @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 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_AdExchangeSeller_AdUnits
+ */
+ public function listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) {
+ $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdExchangeSeller_AdUnits($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ *
+ * $adexchangesellerService = new Google_AdExchangeSellerService(...);
+ * $reports = $adexchangesellerService->reports;
+ *
+ */
+ 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 dimension Dimensions to base the report on.
+ * @opt_param string filter Filters to be run on the report.
+ * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
+ * @opt_param string maxResults The maximum number of rows of report data to return.
+ * @opt_param string metric Numeric columns to include in the report.
+ * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
+ * @opt_param string startIndex Index of the first row of report data to return.
+ * @return Google_Service_AdExchangeSeller_Report
+ */
+ public function generate($startDate, $endDate, $optParams = array()) {
+ $params = array('startDate' => $startDate, 'endDate' => $endDate);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('generate', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdExchangeSeller_Report($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "saved" collection of methods.
+ * Typical usage is:
+ *
+ * $adexchangesellerService = new Google_AdExchangeSellerService(...);
+ * $saved = $adexchangesellerService->saved;
+ *
+ */
+ 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 maxResults The maximum number of rows of report data to return.
+ * @opt_param int startIndex Index of the first row of report data to return.
+ * @return Google_Service_AdExchangeSeller_Report
+ */
+ public function generate($savedReportId, $optParams = array()) {
+ $params = array('savedReportId' => $savedReportId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('generate', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdExchangeSeller_Report($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List all saved reports in this Ad Exchange account. (saved.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of saved reports to include in the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_AdExchangeSeller_SavedReports
+ */
+ public function listReportsSaved($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdExchangeSeller_SavedReports($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "urlchannels" collection of methods.
+ * Typical usage is:
+ *
+ * $adexchangesellerService = new Google_AdExchangeSellerService(...);
+ * $urlchannels = $adexchangesellerService->urlchannels;
+ *
+ */
+ 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.list)
+ *
+ * @param string $adClientId Ad client for which to list URL channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of URL channels to include in the response, used for paging.
+ * @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.
+ * @return Google_Service_AdExchangeSeller_UrlChannels
+ */
+ public function listUrlchannels($adClientId, $optParams = array()) {
+ $params = array('adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdExchangeSeller_UrlChannels($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+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 getArcOptIn() {
+ return $this->arcOptIn;
+ }
+ 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 setProductCode($productCode) {
+ $this->productCode = $productCode;
+ }
+ public function getProductCode() {
+ return $this->productCode;
+ }
+ public function setSupportsReporting($supportsReporting) {
+ $this->supportsReporting = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $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;
+ public function setCode($code) {
+ $this->code = $code;
+ }
+ public function getCode() {
+ return $this->code;
+ }
+ 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 setStatus($status) {
+ $this->status = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
+
+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 $targetingInfo;
+ public function setCode($code) {
+ $this->code = $code;
+ }
+ public function getCode() {
+ return $this->code;
+ }
+ 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 setTargetingInfo(Google_Service_AdExchangeSeller_CustomChannelTargetingInfo$targetingInfo) {
+ $this->targetingInfo = $targetingInfo;
+ }
+ public function getTargetingInfo() {
+ return $this->targetingInfo;
+ }
+}
+
+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 getAdsAppearOn() {
+ return $this->adsAppearOn;
+ }
+ public function setDescription($description) {
+ $this->description = $description;
+ }
+ public function getDescription() {
+ return $this->description;
+ }
+ public function setLocation($location) {
+ $this->location = $location;
+ }
+ public function getLocation() {
+ return $this->location;
+ }
+ public function setSiteLanguage($siteLanguage) {
+ $this->siteLanguage = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_AdExchangeSeller_Report
+ extends Google_Collection {
+ public $averages;
+ protected $__headersType = 'Google_Service_AdExchangeSeller_ReportHeaders';
+ protected $__headersDataType = 'array';
+ public $headers;
+ public $kind;
+ public $rows;
+ public $totalMatchedRows;
+ public $totals;
+ public $warnings;
+ public function setAverages($averages) {
+ $this->averages = $averages;
+ }
+ public function getAverages() {
+ return $this->averages;
+ }
+ public function setHeaders($headers) {
+ $this->headers = $headers;
+ }
+ public function getHeaders() {
+ return $this->headers;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setRows($rows) {
+ $this->rows = $rows;
+ }
+ public function getRows() {
+ return $this->rows;
+ }
+ public function setTotalMatchedRows($totalMatchedRows) {
+ $this->totalMatchedRows = $totalMatchedRows;
+ }
+ public function getTotalMatchedRows() {
+ return $this->totalMatchedRows;
+ }
+ public function setTotals($totals) {
+ $this->totals = $totals;
+ }
+ public function getTotals() {
+ return $this->totals;
+ }
+ public function setWarnings($warnings) {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings() {
+ return $this->warnings;
+ }
+}
+
+class Google_Service_AdExchangeSeller_ReportHeaders
+ extends Google_Model {
+ public $currency;
+ public $name;
+ public $type;
+ public function setCurrency($currency) {
+ $this->currency = $currency;
+ }
+ public function getCurrency() {
+ return $this->currency;
+ }
+ 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_AdExchangeSeller_SavedReport
+ extends Google_Model {
+ public $id;
+ public $kind;
+ public $name;
+ 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_AdExchangeSeller_SavedReports
+ extends Google_Collection {
+ public $etag;
+ protected $__itemsType = 'Google_Service_AdExchangeSeller_SavedReport';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_AdExchangeSeller_UrlChannel
+ extends Google_Model {
+ public $id;
+ public $kind;
+ public $urlPattern;
+ 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 setUrlPattern($urlPattern) {
+ $this->urlPattern = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
diff --git a/src/Google/Service/AdSense.php b/src/Google/Service/AdSense.php
new file mode 100644
index 0000000..da60e21
--- /dev/null
+++ b/src/Google/Service/AdSense.php
@@ -0,0 +1,1759 @@
+
+ * Gives AdSense publishers access to their inventory and the ability to generate reports
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_AdSense extends Google_Service { + public $accounts; + public $accounts_adclients; + public $accounts_adunits; + public $accounts_adunits_customchannels; + public $accounts_customchannels; + public $accounts_customchannels_adunits; + public $accounts_reports; + public $accounts_reports_saved; + public $accounts_savedadstyles; + public $accounts_urlchannels; + public $adclients; + public $adunits; + public $adunits_customchannels; + public $customchannels; + public $customchannels_adunits; + 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) { + $this->servicePath = 'adsense/v1.2/'; + $this->version = 'v1.2'; + $this->serviceName = 'adsense'; + + $client->addService($this->serviceName, $this->version); + $this->accounts = new Google_Service_AdSense_Accounts_Resource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"get": {"id": "adsense.accounts.get", "path": "accounts/{accountId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "tree": {"type": "boolean", "location": "query"}}, "response": {"$ref": "Account"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.accounts.list", "path": "accounts", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "Accounts"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true)); + $this->accounts_adclients = new Google_Service_AdSense_AccountsAdclients_Resource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"id": "adsense.accounts.adclients.list", "path": "accounts/{accountId}/adclients", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdClients"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true)); + $this->accounts_adunits = new Google_Service_AdSense_AccountsAdunits_Resource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"get": {"id": "adsense.accounts.adunits.get", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.accounts.adunits.list", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true)); + $this->accounts_adunits_customchannels = new Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"id": "adsense.accounts.adunits.customchannels.list", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true)); + $this->accounts_customchannels = new Google_Service_AdSense_AccountsCustomchannels_Resource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"get": {"id": "adsense.accounts.customchannels.get", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.accounts.customchannels.list", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true)); + $this->accounts_customchannels_adunits = new Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"id": "adsense.accounts.customchannels.adunits.list", "path": "accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true)); + $this->accounts_reports = new Google_Service_AdSense_AccountsReports_Resource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"id": "adsense.accounts.reports.generate", "path": "accounts/{accountId}/reports", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "currency": {"type": "string", "location": "query"}, "dimension": {"type": "string", "repeated": true, "location": "query"}, "endDate": {"type": "string", "required": true, "location": "query"}, "filter": {"type": "string", "repeated": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "50000", "location": "query"}, "metric": {"type": "string", "repeated": true, "location": "query"}, "sort": {"type": "string", "repeated": true, "location": "query"}, "startDate": {"type": "string", "required": true, "location": "query"}, "startIndex": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "AdsenseReportsGenerateResponse"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "supportsMediaDownload": true}}}', true)); + $this->accounts_reports_saved = new Google_Service_AdSense_AccountsReportsSaved_Resource($this, $this->serviceName, 'saved', json_decode('{"methods": {"generate": {"id": "adsense.accounts.reports.saved.generate", "path": "accounts/{accountId}/reports/{savedReportId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "50000", "location": "query"}, "savedReportId": {"type": "string", "required": true, "location": "path"}, "startIndex": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "AdsenseReportsGenerateResponse"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.accounts.reports.saved.list", "path": "accounts/{accountId}/reports/saved", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "SavedReports"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true)); + $this->accounts_savedadstyles = new Google_Service_AdSense_AccountsSavedadstyles_Resource($this, $this->serviceName, 'savedadstyles', json_decode('{"methods": {"get": {"id": "adsense.accounts.savedadstyles.get", "path": "accounts/{accountId}/savedadstyles/{savedAdStyleId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "savedAdStyleId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "SavedAdStyle"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.accounts.savedadstyles.list", "path": "accounts/{accountId}/savedadstyles", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "SavedAdStyles"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true)); + $this->accounts_urlchannels = new Google_Service_AdSense_AccountsUrlchannels_Resource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"list": {"id": "adsense.accounts.urlchannels.list", "path": "accounts/{accountId}/adclients/{adClientId}/urlchannels", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "UrlChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true)); + $this->adclients = new Google_Service_AdSense_Adclients_Resource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"list": {"id": "adsense.adclients.list", "path": "adclients", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdClients"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true)); + $this->adunits = new Google_Service_AdSense_Adunits_Resource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"get": {"id": "adsense.adunits.get", "path": "adclients/{adClientId}/adunits/{adUnitId}", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.adunits.list", "path": "adclients/{adClientId}/adunits", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true)); + $this->adunits_customchannels = new Google_Service_AdSense_AdunitsCustomchannels_Resource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"list": {"id": "adsense.adunits.customchannels.list", "path": "adclients/{adClientId}/adunits/{adUnitId}/customchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true)); + $this->customchannels = new Google_Service_AdSense_Customchannels_Resource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"get": {"id": "adsense.customchannels.get", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.customchannels.list", "path": "adclients/{adClientId}/customchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true)); + $this->customchannels_adunits = new Google_Service_AdSense_CustomchannelsAdunits_Resource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"list": {"id": "adsense.customchannels.adunits.list", "path": "adclients/{adClientId}/customchannels/{customChannelId}/adunits", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true)); + $this->reports = new Google_Service_AdSense_Reports_Resource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"id": "adsense.reports.generate", "path": "reports", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "repeated": true, "location": "query"}, "currency": {"type": "string", "location": "query"}, "dimension": {"type": "string", "repeated": true, "location": "query"}, "endDate": {"type": "string", "required": true, "location": "query"}, "filter": {"type": "string", "repeated": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "50000", "location": "query"}, "metric": {"type": "string", "repeated": true, "location": "query"}, "sort": {"type": "string", "repeated": true, "location": "query"}, "startDate": {"type": "string", "required": true, "location": "query"}, "startIndex": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "AdsenseReportsGenerateResponse"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"], "supportsMediaDownload": true}}}', true)); + $this->reports_saved = new Google_Service_AdSense_ReportsSaved_Resource($this, $this->serviceName, 'saved', json_decode('{"methods": {"generate": {"id": "adsense.reports.saved.generate", "path": "reports/{savedReportId}", "httpMethod": "GET", "parameters": {"locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "50000", "location": "query"}, "savedReportId": {"type": "string", "required": true, "location": "path"}, "startIndex": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "AdsenseReportsGenerateResponse"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.reports.saved.list", "path": "reports/saved", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "SavedReports"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true)); + $this->savedadstyles = new Google_Service_AdSense_Savedadstyles_Resource($this, $this->serviceName, 'savedadstyles', json_decode('{"methods": {"get": {"id": "adsense.savedadstyles.get", "path": "savedadstyles/{savedAdStyleId}", "httpMethod": "GET", "parameters": {"savedAdStyleId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "SavedAdStyle"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}, "list": {"id": "adsense.savedadstyles.list", "path": "savedadstyles", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "SavedAdStyles"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true)); + $this->urlchannels = new Google_Service_AdSense_Urlchannels_Resource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"list": {"id": "adsense.urlchannels.list", "path": "adclients/{adClientId}/urlchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "UrlChannels"}, "scopes": ["https://www.googleapis.com/auth/adsense", "https://www.googleapis.com/auth/adsense.readonly"]}}}', true)); + + } +} + + + /** + * The "accounts" collection of methods. + * Typical usage is: + *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $accounts = $adsenseService->accounts;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_Account($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List all accounts available to this AdSense account. (accounts.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of accounts to include in the response, used for paging.
+ * @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.
+ * @return Google_Service_AdSense_Accounts
+ */
+ public function listAccounts($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_Accounts($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "adclients" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $adclients = $adsenseService->adclients;
+ *
+ */
+ class Google_Service_AdSense_AccountsAdclients_Resource extends Google_Service_Resource {
+
+
+ /**
+ * List all ad clients in the specified account. (adclients.list)
+ *
+ * @param string $accountId Account for which to list ad clients.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of ad clients to include in the response, used for paging.
+ * @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.
+ * @return Google_Service_AdSense_AdClients
+ */
+ public function listAccountsAdclients($accountId, $optParams = array()) {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_AdClients($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "adunits" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $adunits = $adsenseService->adunits;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_AdUnit($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List all ad units in the specified ad client for the specified account. (adunits.list)
+ *
+ * @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 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 listAccountsAdunits($accountId, $adClientId, $optParams = array()) {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_AdUnits($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "customchannels" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $customchannels = $adsenseService->customchannels;
+ *
+ */
+ class Google_Service_AdSense_AccountsAdunitsCustomchannels_Resource extends Google_Service_Resource {
+
+
+ /**
+ * List all custom channels which the specified ad unit belongs to. (customchannels.list)
+ *
+ * @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 int maxResults The maximum number of custom channels to include in the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_CustomChannels
+ */
+ public function listAccountsAdunitsCustomchannels($accountId, $adClientId, $adUnitId, $optParams = array()) {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'adUnitId' => $adUnitId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_CustomChannels($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "customchannels" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $customchannels = $adsenseService->customchannels;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_CustomChannel($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List all custom channels in the specified ad client for the specified account.
+ * (customchannels.list)
+ *
+ * @param string $accountId Account to which the ad client belongs.
+ * @param string $adClientId Ad client for which to list custom channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_CustomChannels
+ */
+ public function listAccountsCustomchannels($accountId, $adClientId, $optParams = array()) {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_CustomChannels($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "adunits" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $adunits = $adsenseService->adunits;
+ *
+ */
+ class Google_Service_AdSense_AccountsCustomchannelsAdunits_Resource extends Google_Service_Resource {
+
+
+ /**
+ * List all ad units in the specified custom channel. (adunits.list)
+ *
+ * @param string $accountId Account to which the ad client belongs.
+ * @param string $adClientId Ad client which contains the custom channel.
+ * @param string $customChannelId Custom channel for which to list ad units.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeInactive Whether to include inactive ad units. Default: true.
+ * @opt_param int maxResults The maximum number of ad units to include in the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_AdUnits
+ */
+ public function listAccountsCustomchannelsAdunits($accountId, $adClientId, $customChannelId, $optParams = array()) {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId, 'customChannelId' => $customChannelId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_AdUnits($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $reports = $adsenseService->reports;
+ *
+ */
+ 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 currency Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
+ * @opt_param string dimension Dimensions to base the report on.
+ * @opt_param string filter Filters to be run on the report.
+ * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
+ * @opt_param int maxResults The maximum number of rows of report data to return.
+ * @opt_param string metric Numeric columns to include in the report.
+ * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
+ * @opt_param int startIndex Index of the first row of report data to return.
+ * @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);
+ $data = $this->__call('generate', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_AdsenseReportsGenerateResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "saved" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $saved = $adsenseService->saved;
+ *
+ */
+ 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 maxResults The maximum number of rows of report data to return.
+ * @opt_param int startIndex Index of the first row of report data to return.
+ * @return Google_Service_AdSense_AdsenseReportsGenerateResponse
+ */
+ public function generate($accountId, $savedReportId, $optParams = array()) {
+ $params = array('accountId' => $accountId, 'savedReportId' => $savedReportId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('generate', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_AdsenseReportsGenerateResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List all saved reports in the specified AdSense account. (saved.list)
+ *
+ * @param string $accountId Account to which the saved reports belong.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of saved reports to include in the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_SavedReports
+ */
+ public function listAccountsReportsSaved($accountId, $optParams = array()) {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_SavedReports($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "savedadstyles" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $savedadstyles = $adsenseService->savedadstyles;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_SavedAdStyle($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List all saved ad styles in the specified account. (savedadstyles.list)
+ *
+ * @param string $accountId Account for which to list saved ad styles.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of saved ad styles to include in the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_SavedAdStyles
+ */
+ public function listAccountsSavedadstyles($accountId, $optParams = array()) {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_SavedAdStyles($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "urlchannels" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $urlchannels = $adsenseService->urlchannels;
+ *
+ */
+ class Google_Service_AdSense_AccountsUrlchannels_Resource extends Google_Service_Resource {
+
+
+ /**
+ * List all URL channels in the specified ad client for the specified account. (urlchannels.list)
+ *
+ * @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 int maxResults The maximum number of URL channels to include in the response, used for paging.
+ * @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.
+ * @return Google_Service_AdSense_UrlChannels
+ */
+ public function listAccountsUrlchannels($accountId, $adClientId, $optParams = array()) {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_UrlChannels($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "adclients" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $adclients = $adsenseService->adclients;
+ *
+ */
+ class Google_Service_AdSense_Adclients_Resource extends Google_Service_Resource {
+
+
+ /**
+ * List all ad clients in this AdSense account. (adclients.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of ad clients to include in the response, used for paging.
+ * @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.
+ * @return Google_Service_AdSense_AdClients
+ */
+ public function listAdclients($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_AdClients($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "adunits" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $adunits = $adsenseService->adunits;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_AdUnit($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List all ad units in the specified ad client for this AdSense account. (adunits.list)
+ *
+ * @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 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 listAdunits($adClientId, $optParams = array()) {
+ $params = array('adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_AdUnits($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "customchannels" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $customchannels = $adsenseService->customchannels;
+ *
+ */
+ class Google_Service_AdSense_AdunitsCustomchannels_Resource extends Google_Service_Resource {
+
+
+ /**
+ * List all custom channels which the specified ad unit belongs to. (customchannels.list)
+ *
+ * @param string $adClientId Ad client which contains the ad unit.
+ * @param string $adUnitId Ad unit for which to list custom channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_CustomChannels
+ */
+ public function listAdunitsCustomchannels($adClientId, $adUnitId, $optParams = array()) {
+ $params = array('adClientId' => $adClientId, 'adUnitId' => $adUnitId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_CustomChannels($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "customchannels" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $customchannels = $adsenseService->customchannels;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_CustomChannel($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List all custom channels in the specified ad client for this AdSense account.
+ * (customchannels.list)
+ *
+ * @param string $adClientId Ad client for which to list custom channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of custom channels to include in the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_CustomChannels
+ */
+ public function listCustomchannels($adClientId, $optParams = array()) {
+ $params = array('adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_CustomChannels($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "adunits" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $adunits = $adsenseService->adunits;
+ *
+ */
+ class Google_Service_AdSense_CustomchannelsAdunits_Resource extends Google_Service_Resource {
+
+
+ /**
+ * List all ad units in the specified custom channel. (adunits.list)
+ *
+ * @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 listCustomchannelsAdunits($adClientId, $customChannelId, $optParams = array()) {
+ $params = array('adClientId' => $adClientId, 'customChannelId' => $customChannelId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_AdUnits($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $reports = $adsenseService->reports;
+ *
+ */
+ 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 accountId Accounts upon which to report.
+ * @opt_param string currency Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
+ * @opt_param string dimension Dimensions to base the report on.
+ * @opt_param string filter Filters to be run on the report.
+ * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
+ * @opt_param int maxResults The maximum number of rows of report data to return.
+ * @opt_param string metric Numeric columns to include in the report.
+ * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
+ * @opt_param int startIndex Index of the first row of report data to return.
+ * @return Google_Service_AdSense_AdsenseReportsGenerateResponse
+ */
+ public function generate($startDate, $endDate, $optParams = array()) {
+ $params = array('startDate' => $startDate, 'endDate' => $endDate);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('generate', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_AdsenseReportsGenerateResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "saved" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $saved = $adsenseService->saved;
+ *
+ */
+ 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 maxResults The maximum number of rows of report data to return.
+ * @opt_param int startIndex Index of the first row of report data to return.
+ * @return Google_Service_AdSense_AdsenseReportsGenerateResponse
+ */
+ public function generate($savedReportId, $optParams = array()) {
+ $params = array('savedReportId' => $savedReportId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('generate', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_AdsenseReportsGenerateResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List all saved reports in this AdSense account. (saved.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of saved reports to include in the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_SavedReports
+ */
+ public function listReportsSaved($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_SavedReports($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "savedadstyles" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $savedadstyles = $adsenseService->savedadstyles;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_SavedAdStyle($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List all saved ad styles in the user's account. (savedadstyles.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of saved ad styles to include in the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_AdSense_SavedAdStyles
+ */
+ public function listSavedadstyles($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_SavedAdStyles($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "urlchannels" collection of methods.
+ * Typical usage is:
+ *
+ * $adsenseService = new Google_AdSenseService(...);
+ * $urlchannels = $adsenseService->urlchannels;
+ *
+ */
+ class Google_Service_AdSense_Urlchannels_Resource extends Google_Service_Resource {
+
+
+ /**
+ * List all URL channels in the specified ad client for this AdSense account. (urlchannels.list)
+ *
+ * @param string $adClientId Ad client for which to list URL channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults The maximum number of URL channels to include in the response, used for paging.
+ * @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.
+ * @return Google_Service_AdSense_UrlChannels
+ */
+ public function listUrlchannels($adClientId, $optParams = array()) {
+ $params = array('adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSense_UrlChannels($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+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 $subAccounts;
+ 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 setPremium($premium) {
+ $this->premium = $premium;
+ }
+ public function getPremium() {
+ return $this->premium;
+ }
+ public function setSubAccounts($subAccounts) {
+ $this->subAccounts = $subAccounts;
+ }
+ public function getSubAccounts() {
+ return $this->subAccounts;
+ }
+}
+
+class Google_Service_AdSense_Accounts
+ extends Google_Collection {
+ public $etag;
+ protected $__itemsType = 'Google_Service_AdSense_Account';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_AdSense_AdClient
+ extends Google_Model {
+ public $arcOptIn;
+ public $id;
+ public $kind;
+ public $productCode;
+ public $supportsReporting;
+ public function setArcOptIn($arcOptIn) {
+ $this->arcOptIn = $arcOptIn;
+ }
+ public function getArcOptIn() {
+ return $this->arcOptIn;
+ }
+ 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 setProductCode($productCode) {
+ $this->productCode = $productCode;
+ }
+ public function getProductCode() {
+ return $this->productCode;
+ }
+ public function setSupportsReporting($supportsReporting) {
+ $this->supportsReporting = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_AdSense_AdStyle
+ extends Google_Model {
+ protected $__colorsType = 'Google_Service_AdSense_AdStyleColors';
+ protected $__colorsDataType = '';
+ public $colors;
+ public $corners;
+ protected $__fontType = 'Google_Service_AdSense_AdStyleFont';
+ protected $__fontDataType = '';
+ public $font;
+ public $kind;
+ public function setColors(Google_Service_AdSense_AdStyleColors$colors) {
+ $this->colors = $colors;
+ }
+ public function getColors() {
+ return $this->colors;
+ }
+ public function setCorners($corners) {
+ $this->corners = $corners;
+ }
+ public function getCorners() {
+ return $this->corners;
+ }
+ public function setFont(Google_Service_AdSense_AdStyleFont$font) {
+ $this->font = $font;
+ }
+ public function getFont() {
+ return $this->font;
+ }
+ public function setKind($kind) {
+ $this->kind = $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;
+ public function setBackground($background) {
+ $this->background = $background;
+ }
+ public function getBackground() {
+ return $this->background;
+ }
+ public function setBorder($border) {
+ $this->border = $border;
+ }
+ public function getBorder() {
+ return $this->border;
+ }
+ public function setText($text) {
+ $this->text = $text;
+ }
+ public function getText() {
+ return $this->text;
+ }
+ public function setTitle($title) {
+ $this->title = $title;
+ }
+ public function getTitle() {
+ return $this->title;
+ }
+ public function setUrl($url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
+
+class Google_Service_AdSense_AdStyleFont
+ extends Google_Model {
+ public $family;
+ public $size;
+ public function setFamily($family) {
+ $this->family = $family;
+ }
+ public function getFamily() {
+ return $this->family;
+ }
+ public function setSize($size) {
+ $this->size = $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 = '';
+ public $contentAdsSettings;
+ protected $__customStyleType = 'Google_Service_AdSense_AdStyle';
+ protected $__customStyleDataType = '';
+ public $customStyle;
+ protected $__feedAdsSettingsType = 'Google_Service_AdSense_AdUnitFeedAdsSettings';
+ protected $__feedAdsSettingsDataType = '';
+ public $feedAdsSettings;
+ public $id;
+ public $kind;
+ protected $__mobileContentAdsSettingsType = 'Google_Service_AdSense_AdUnitMobileContentAdsSettings';
+ protected $__mobileContentAdsSettingsDataType = '';
+ public $mobileContentAdsSettings;
+ public $name;
+ public $savedStyleId;
+ public $status;
+ public function setCode($code) {
+ $this->code = $code;
+ }
+ public function getCode() {
+ return $this->code;
+ }
+ public function setContentAdsSettings(Google_Service_AdSense_AdUnitContentAdsSettings$contentAdsSettings) {
+ $this->contentAdsSettings = $contentAdsSettings;
+ }
+ public function getContentAdsSettings() {
+ return $this->contentAdsSettings;
+ }
+ public function setCustomStyle(Google_Service_AdSense_AdStyle$customStyle) {
+ $this->customStyle = $customStyle;
+ }
+ public function getCustomStyle() {
+ return $this->customStyle;
+ }
+ public function setFeedAdsSettings(Google_Service_AdSense_AdUnitFeedAdsSettings$feedAdsSettings) {
+ $this->feedAdsSettings = $feedAdsSettings;
+ }
+ public function getFeedAdsSettings() {
+ return $this->feedAdsSettings;
+ }
+ 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 setMobileContentAdsSettings(Google_Service_AdSense_AdUnitMobileContentAdsSettings$mobileContentAdsSettings) {
+ $this->mobileContentAdsSettings = $mobileContentAdsSettings;
+ }
+ public function getMobileContentAdsSettings() {
+ return $this->mobileContentAdsSettings;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setSavedStyleId($savedStyleId) {
+ $this->savedStyleId = $savedStyleId;
+ }
+ public function getSavedStyleId() {
+ return $this->savedStyleId;
+ }
+ public function setStatus($status) {
+ $this->status = $status;
+ }
+ public function getStatus() {
+ return $this->status;
+ }
+}
+
+class Google_Service_AdSense_AdUnitContentAdsSettings
+ extends Google_Model {
+ protected $__backupOptionType = 'Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption';
+ protected $__backupOptionDataType = '';
+ public $backupOption;
+ public $size;
+ public $type;
+ public function setBackupOption(Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption$backupOption) {
+ $this->backupOption = $backupOption;
+ }
+ public function getBackupOption() {
+ return $this->backupOption;
+ }
+ public function setSize($size) {
+ $this->size = $size;
+ }
+ public function getSize() {
+ return $this->size;
+ }
+ public function setType($type) {
+ $this->type = $type;
+ }
+ public function getType() {
+ return $this->type;
+ }
+}
+
+class Google_Service_AdSense_AdUnitContentAdsSettingsBackupOption
+ extends Google_Model {
+ public $color;
+ public $type;
+ public $url;
+ public function setColor($color) {
+ $this->color = $color;
+ }
+ public function getColor() {
+ return $this->color;
+ }
+ 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;
+ }
+}
+
+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 getAdPosition() {
+ return $this->adPosition;
+ }
+ public function setFrequency($frequency) {
+ $this->frequency = $frequency;
+ }
+ public function getFrequency() {
+ return $this->frequency;
+ }
+ public function setMinimumWordCount($minimumWordCount) {
+ $this->minimumWordCount = $minimumWordCount;
+ }
+ public function getMinimumWordCount() {
+ return $this->minimumWordCount;
+ }
+ public function setType($type) {
+ $this->type = $type;
+ }
+ public function getType() {
+ return $this->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 getMarkupLanguage() {
+ return $this->markupLanguage;
+ }
+ public function setScriptingLanguage($scriptingLanguage) {
+ $this->scriptingLanguage = $scriptingLanguage;
+ }
+ public function getScriptingLanguage() {
+ return $this->scriptingLanguage;
+ }
+ public function setSize($size) {
+ $this->size = $size;
+ }
+ public function getSize() {
+ return $this->size;
+ }
+ public function setType($type) {
+ $this->type = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_AdSense_AdsenseReportsGenerateResponse
+ extends Google_Collection {
+ public $averages;
+ protected $__headersType = 'Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders';
+ protected $__headersDataType = 'array';
+ public $headers;
+ public $kind;
+ public $rows;
+ public $totalMatchedRows;
+ public $totals;
+ public $warnings;
+ public function setAverages($averages) {
+ $this->averages = $averages;
+ }
+ public function getAverages() {
+ return $this->averages;
+ }
+ public function setHeaders($headers) {
+ $this->headers = $headers;
+ }
+ public function getHeaders() {
+ return $this->headers;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setRows($rows) {
+ $this->rows = $rows;
+ }
+ public function getRows() {
+ return $this->rows;
+ }
+ public function setTotalMatchedRows($totalMatchedRows) {
+ $this->totalMatchedRows = $totalMatchedRows;
+ }
+ public function getTotalMatchedRows() {
+ return $this->totalMatchedRows;
+ }
+ public function setTotals($totals) {
+ $this->totals = $totals;
+ }
+ public function getTotals() {
+ return $this->totals;
+ }
+ public function setWarnings($warnings) {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings() {
+ return $this->warnings;
+ }
+}
+
+class Google_Service_AdSense_AdsenseReportsGenerateResponseHeaders
+ extends Google_Model {
+ public $currency;
+ public $name;
+ public $type;
+ public function setCurrency($currency) {
+ $this->currency = $currency;
+ }
+ public function getCurrency() {
+ return $this->currency;
+ }
+ 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_AdSense_CustomChannel
+ extends Google_Model {
+ public $code;
+ public $id;
+ public $kind;
+ public $name;
+ protected $__targetingInfoType = 'Google_Service_AdSense_CustomChannelTargetingInfo';
+ protected $__targetingInfoDataType = '';
+ public $targetingInfo;
+ public function setCode($code) {
+ $this->code = $code;
+ }
+ public function getCode() {
+ return $this->code;
+ }
+ 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 setTargetingInfo(Google_Service_AdSense_CustomChannelTargetingInfo$targetingInfo) {
+ $this->targetingInfo = $targetingInfo;
+ }
+ public function getTargetingInfo() {
+ return $this->targetingInfo;
+ }
+}
+
+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 getAdsAppearOn() {
+ return $this->adsAppearOn;
+ }
+ public function setDescription($description) {
+ $this->description = $description;
+ }
+ public function getDescription() {
+ return $this->description;
+ }
+ public function setLocation($location) {
+ $this->location = $location;
+ }
+ public function getLocation() {
+ return $this->location;
+ }
+ public function setSiteLanguage($siteLanguage) {
+ $this->siteLanguage = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_AdSense_SavedAdStyle
+ extends Google_Model {
+ protected $__adStyleType = 'Google_Service_AdSense_AdStyle';
+ protected $__adStyleDataType = '';
+ public $adStyle;
+ public $id;
+ public $kind;
+ public $name;
+ public function setAdStyle(Google_Service_AdSense_AdStyle$adStyle) {
+ $this->adStyle = $adStyle;
+ }
+ public function getAdStyle() {
+ return $this->adStyle;
+ }
+ 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_AdSense_SavedAdStyles
+ extends Google_Collection {
+ public $etag;
+ protected $__itemsType = 'Google_Service_AdSense_SavedAdStyle';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_AdSense_SavedReport
+ extends Google_Model {
+ public $id;
+ public $kind;
+ public $name;
+ 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_AdSense_SavedReports
+ extends Google_Collection {
+ public $etag;
+ protected $__itemsType = 'Google_Service_AdSense_SavedReport';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_AdSense_UrlChannel
+ extends Google_Model {
+ public $id;
+ public $kind;
+ public $urlPattern;
+ 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 setUrlPattern($urlPattern) {
+ $this->urlPattern = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
diff --git a/src/Google/Service/AdSenseHost.php b/src/Google/Service/AdSenseHost.php
new file mode 100644
index 0000000..79489f8
--- /dev/null
+++ b/src/Google/Service/AdSenseHost.php
@@ -0,0 +1,1395 @@
+
+ * Gives AdSense Hosts access to report generation, ad code generation, and publisher management capabilities.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_AdSenseHost extends Google_Service { + 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) { + $this->servicePath = 'adsensehost/v4.1/'; + $this->version = 'v4.1'; + $this->serviceName = 'adsensehost'; + + $client->addService($this->serviceName, $this->version); + $this->accounts = new Google_Service_AdSenseHost_Accounts_Resource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"get": {"id": "adsensehost.accounts.get", "path": "accounts/{accountId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Account"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.accounts.list", "path": "accounts", "httpMethod": "GET", "parameters": {"filterAdClientId": {"type": "string", "required": true, "repeated": true, "location": "query"}}, "response": {"$ref": "Accounts"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true)); + $this->accounts_adclients = new Google_Service_AdSenseHost_AccountsAdclients_Resource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"get": {"id": "adsensehost.accounts.adclients.get", "path": "accounts/{accountId}/adclients/{adClientId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdClient"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.accounts.adclients.list", "path": "accounts/{accountId}/adclients", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdClients"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true)); + $this->accounts_adunits = new Google_Service_AdSenseHost_AccountsAdunits_Resource($this, $this->serviceName, 'adunits', json_decode('{"methods": {"delete": {"id": "adsensehost.accounts.adunits.delete", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "get": {"id": "adsensehost.accounts.adunits.get", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "getAdCode": {"id": "adsensehost.accounts.adunits.getAdCode", "path": "accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "path"}, "hostCustomChannelId": {"type": "string", "repeated": true, "location": "query"}}, "response": {"$ref": "AdCode"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "insert": {"id": "adsensehost.accounts.adunits.insert", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.accounts.adunits.list", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "includeInactive": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdUnits"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "patch": {"id": "adsensehost.accounts.adunits.patch", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "httpMethod": "PATCH", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}, "adUnitId": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "update": {"id": "adsensehost.accounts.adunits.update", "path": "accounts/{accountId}/adclients/{adClientId}/adunits", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "adClientId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AdUnit"}, "response": {"$ref": "AdUnit"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true)); + $this->accounts_reports = new Google_Service_AdSenseHost_AccountsReports_Resource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"id": "adsensehost.accounts.reports.generate", "path": "accounts/{accountId}/reports", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "dimension": {"type": "string", "repeated": true, "location": "query"}, "endDate": {"type": "string", "required": true, "location": "query"}, "filter": {"type": "string", "repeated": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "50000", "location": "query"}, "metric": {"type": "string", "repeated": true, "location": "query"}, "sort": {"type": "string", "repeated": true, "location": "query"}, "startDate": {"type": "string", "required": true, "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "Report"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true)); + $this->adclients = new Google_Service_AdSenseHost_Adclients_Resource($this, $this->serviceName, 'adclients', json_decode('{"methods": {"get": {"id": "adsensehost.adclients.get", "path": "adclients/{adClientId}", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AdClient"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.adclients.list", "path": "adclients", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "AdClients"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true)); + $this->associationsessions = new Google_Service_AdSenseHost_Associationsessions_Resource($this, $this->serviceName, 'associationsessions', json_decode('{"methods": {"start": {"id": "adsensehost.associationsessions.start", "path": "associationsessions/start", "httpMethod": "GET", "parameters": {"productCode": {"type": "string", "required": true, "enum": ["AFC", "AFG", "AFMC", "AFS", "AFV"], "repeated": true, "location": "query"}, "userLocale": {"type": "string", "location": "query"}, "websiteLocale": {"type": "string", "location": "query"}, "websiteUrl": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "AssociationSession"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "verify": {"id": "adsensehost.associationsessions.verify", "path": "associationsessions/verify", "httpMethod": "GET", "parameters": {"token": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "AssociationSession"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true)); + $this->customchannels = new Google_Service_AdSenseHost_Customchannels_Resource($this, $this->serviceName, 'customchannels', json_decode('{"methods": {"delete": {"id": "adsensehost.customchannels.delete", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "httpMethod": "DELETE", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "get": {"id": "adsensehost.customchannels.get", "path": "adclients/{adClientId}/customchannels/{customChannelId}", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "insert": {"id": "adsensehost.customchannels.insert", "path": "adclients/{adClientId}/customchannels", "httpMethod": "POST", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.customchannels.list", "path": "adclients/{adClientId}/customchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CustomChannels"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "patch": {"id": "adsensehost.customchannels.patch", "path": "adclients/{adClientId}/customchannels", "httpMethod": "PATCH", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "customChannelId": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "update": {"id": "adsensehost.customchannels.update", "path": "adclients/{adClientId}/customchannels", "httpMethod": "PUT", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "CustomChannel"}, "response": {"$ref": "CustomChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true)); + $this->reports = new Google_Service_AdSenseHost_Reports_Resource($this, $this->serviceName, 'reports', json_decode('{"methods": {"generate": {"id": "adsensehost.reports.generate", "path": "reports", "httpMethod": "GET", "parameters": {"dimension": {"type": "string", "repeated": true, "location": "query"}, "endDate": {"type": "string", "required": true, "location": "query"}, "filter": {"type": "string", "repeated": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "50000", "location": "query"}, "metric": {"type": "string", "repeated": true, "location": "query"}, "sort": {"type": "string", "repeated": true, "location": "query"}, "startDate": {"type": "string", "required": true, "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "5000", "location": "query"}}, "response": {"$ref": "Report"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true)); + $this->urlchannels = new Google_Service_AdSenseHost_Urlchannels_Resource($this, $this->serviceName, 'urlchannels', json_decode('{"methods": {"delete": {"id": "adsensehost.urlchannels.delete", "path": "adclients/{adClientId}/urlchannels/{urlChannelId}", "httpMethod": "DELETE", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "urlChannelId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "UrlChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "insert": {"id": "adsensehost.urlchannels.insert", "path": "adclients/{adClientId}/urlchannels", "httpMethod": "POST", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "UrlChannel"}, "response": {"$ref": "UrlChannel"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}, "list": {"id": "adsensehost.urlchannels.list", "path": "adclients/{adClientId}/urlchannels", "httpMethod": "GET", "parameters": {"adClientId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "10000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "UrlChannels"}, "scopes": ["https://www.googleapis.com/auth/adsensehost"]}}}', true)); + + } +} + + + /** + * The "accounts" collection of methods. + * Typical usage is: + *
+ * $adsensehostService = new Google_AdSenseHostService(...);
+ * $accounts = $adsensehostService->accounts;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_Account($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List hosted accounts associated with this AdSense account by ad client id. (accounts.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_Accounts($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "adclients" collection of methods.
+ * Typical usage is:
+ *
+ * $adsensehostService = new Google_AdSenseHostService(...);
+ * $adclients = $adsensehostService->adclients;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_AdClient($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List all hosted ad clients in the specified hosted account. (adclients.list)
+ *
+ * @param string $accountId Account for which to list ad clients.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
+ * @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.
+ * @return Google_Service_AdSenseHost_AdClients
+ */
+ public function listAccountsAdclients($accountId, $optParams = array()) {
+ $params = array('accountId' => $accountId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_AdClients($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "adunits" collection of methods.
+ * Typical usage is:
+ *
+ * $adsensehostService = new Google_AdSenseHostService(...);
+ * $adunits = $adsensehostService->adunits;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_AdUnit($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_AdUnit($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('getAdCode', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_AdCode($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_AdUnit($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List all ad units in the specified publisher's AdSense account. (adunits.list)
+ *
+ * @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 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_AdSenseHost_AdUnits
+ */
+ public function listAccountsAdunits($accountId, $adClientId, $optParams = array()) {
+ $params = array('accountId' => $accountId, 'adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_AdUnits($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_AdUnit($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_AdUnit($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ *
+ * $adsensehostService = new Google_AdSenseHostService(...);
+ * $reports = $adsensehostService->reports;
+ *
+ */
+ 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 dimension Dimensions to base the report on.
+ * @opt_param string filter Filters to be run on the report.
+ * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
+ * @opt_param string maxResults The maximum number of rows of report data to return.
+ * @opt_param string metric Numeric columns to include in the report.
+ * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
+ * @opt_param string startIndex Index of the first row of report data to return.
+ * @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);
+ $data = $this->__call('generate', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_Report($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "adclients" collection of methods.
+ * Typical usage is:
+ *
+ * $adsensehostService = new Google_AdSenseHostService(...);
+ * $adclients = $adsensehostService->adclients;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_AdClient($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List all host ad clients in this AdSense account. (adclients.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of ad clients to include in the response, used for paging.
+ * @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.
+ * @return Google_Service_AdSenseHost_AdClients
+ */
+ public function listAdclients($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_AdClients($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "associationsessions" collection of methods.
+ * Typical usage is:
+ *
+ * $adsensehostService = new Google_AdSenseHostService(...);
+ * $associationsessions = $adsensehostService->associationsessions;
+ *
+ */
+ 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 userLocale The preferred locale of the user.
+ * @opt_param string websiteLocale The locale of the user's hosted website.
+ * @return Google_Service_AdSenseHost_AssociationSession
+ */
+ public function start($productCode, $websiteUrl, $optParams = array()) {
+ $params = array('productCode' => $productCode, 'websiteUrl' => $websiteUrl);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('start', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_AssociationSession($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('verify', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_AssociationSession($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "customchannels" collection of methods.
+ * Typical usage is:
+ *
+ * $adsensehostService = new Google_AdSenseHostService(...);
+ * $customchannels = $adsensehostService->customchannels;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_CustomChannel($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_CustomChannel($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_CustomChannel($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List all host custom channels in this AdSense account. (customchannels.list)
+ *
+ * @param string $adClientId Ad client for which to list custom channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of custom channels to include in the response, used for paging.
+ * @opt_param string pageToken A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
+ * @return Google_Service_AdSenseHost_CustomChannels
+ */
+ public function listCustomchannels($adClientId, $optParams = array()) {
+ $params = array('adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_CustomChannels($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_CustomChannel($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_CustomChannel($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ *
+ * $adsensehostService = new Google_AdSenseHostService(...);
+ * $reports = $adsensehostService->reports;
+ *
+ */
+ 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 dimension Dimensions to base the report on.
+ * @opt_param string filter Filters to be run on the report.
+ * @opt_param string locale Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
+ * @opt_param string maxResults The maximum number of rows of report data to return.
+ * @opt_param string metric Numeric columns to include in the report.
+ * @opt_param string sort The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending.
+ * @opt_param string startIndex Index of the first row of report data to return.
+ * @return Google_Service_AdSenseHost_Report
+ */
+ public function generate($startDate, $endDate, $optParams = array()) {
+ $params = array('startDate' => $startDate, 'endDate' => $endDate);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('generate', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_Report($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "urlchannels" collection of methods.
+ * Typical usage is:
+ *
+ * $adsensehostService = new Google_AdSenseHostService(...);
+ * $urlchannels = $adsensehostService->urlchannels;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_UrlChannel($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_UrlChannel($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List all host URL channels in the host AdSense account. (urlchannels.list)
+ *
+ * @param string $adClientId Ad client for which to list URL channels.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The maximum number of URL channels to include in the response, used for paging.
+ * @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.
+ * @return Google_Service_AdSenseHost_UrlChannels
+ */
+ public function listUrlchannels($adClientId, $optParams = array()) {
+ $params = array('adClientId' => $adClientId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_AdSenseHost_UrlChannels($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_AdSenseHost_Account
+ extends Google_Model {
+ public $id;
+ public $kind;
+ public $name;
+ public $status;
+ 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 setStatus($status) {
+ $this->status = $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 $items;
+ 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_AdSenseHost_AdClient
+ extends Google_Model {
+ public $arcOptIn;
+ public $id;
+ public $kind;
+ public $productCode;
+ public $supportsReporting;
+ public function setArcOptIn($arcOptIn) {
+ $this->arcOptIn = $arcOptIn;
+ }
+ public function getArcOptIn() {
+ return $this->arcOptIn;
+ }
+ 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 setProductCode($productCode) {
+ $this->productCode = $productCode;
+ }
+ public function getProductCode() {
+ return $this->productCode;
+ }
+ public function setSupportsReporting($supportsReporting) {
+ $this->supportsReporting = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_AdSenseHost_AdCode
+ extends Google_Model {
+ public $adCode;
+ public $kind;
+ public function setAdCode($adCode) {
+ $this->adCode = $adCode;
+ }
+ public function getAdCode() {
+ return $this->adCode;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+}
+
+class Google_Service_AdSenseHost_AdStyle
+ extends Google_Model {
+ protected $__colorsType = 'Google_Service_AdSenseHost_AdStyleColors';
+ protected $__colorsDataType = '';
+ public $colors;
+ public $corners;
+ protected $__fontType = 'Google_Service_AdSenseHost_AdStyleFont';
+ protected $__fontDataType = '';
+ public $font;
+ public $kind;
+ public function setColors(Google_Service_AdSenseHost_AdStyleColors$colors) {
+ $this->colors = $colors;
+ }
+ public function getColors() {
+ return $this->colors;
+ }
+ public function setCorners($corners) {
+ $this->corners = $corners;
+ }
+ public function getCorners() {
+ return $this->corners;
+ }
+ public function setFont(Google_Service_AdSenseHost_AdStyleFont$font) {
+ $this->font = $font;
+ }
+ public function getFont() {
+ return $this->font;
+ }
+ public function setKind($kind) {
+ $this->kind = $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;
+ public function setBackground($background) {
+ $this->background = $background;
+ }
+ public function getBackground() {
+ return $this->background;
+ }
+ public function setBorder($border) {
+ $this->border = $border;
+ }
+ public function getBorder() {
+ return $this->border;
+ }
+ public function setText($text) {
+ $this->text = $text;
+ }
+ public function getText() {
+ return $this->text;
+ }
+ public function setTitle($title) {
+ $this->title = $title;
+ }
+ public function getTitle() {
+ return $this->title;
+ }
+ public function setUrl($url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
+
+class Google_Service_AdSenseHost_AdStyleFont
+ extends Google_Model {
+ public $family;
+ public $size;
+ public function setFamily($family) {
+ $this->family = $family;
+ }
+ public function getFamily() {
+ return $this->family;
+ }
+ public function setSize($size) {
+ $this->size = $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 = '';
+ public $contentAdsSettings;
+ protected $__customStyleType = 'Google_Service_AdSenseHost_AdStyle';
+ protected $__customStyleDataType = '';
+ public $customStyle;
+ public $id;
+ public $kind;
+ protected $__mobileContentAdsSettingsType = 'Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings';
+ protected $__mobileContentAdsSettingsDataType = '';
+ public $mobileContentAdsSettings;
+ public $name;
+ public $status;
+ public function setCode($code) {
+ $this->code = $code;
+ }
+ public function getCode() {
+ return $this->code;
+ }
+ public function setContentAdsSettings(Google_Service_AdSenseHost_AdUnitContentAdsSettings$contentAdsSettings) {
+ $this->contentAdsSettings = $contentAdsSettings;
+ }
+ public function getContentAdsSettings() {
+ return $this->contentAdsSettings;
+ }
+ public function setCustomStyle(Google_Service_AdSenseHost_AdStyle$customStyle) {
+ $this->customStyle = $customStyle;
+ }
+ public function getCustomStyle() {
+ return $this->customStyle;
+ }
+ 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 setMobileContentAdsSettings(Google_Service_AdSenseHost_AdUnitMobileContentAdsSettings$mobileContentAdsSettings) {
+ $this->mobileContentAdsSettings = $mobileContentAdsSettings;
+ }
+ public function getMobileContentAdsSettings() {
+ return $this->mobileContentAdsSettings;
+ }
+ 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;
+ }
+}
+
+class Google_Service_AdSenseHost_AdUnitContentAdsSettings
+ extends Google_Model {
+ protected $__backupOptionType = 'Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption';
+ protected $__backupOptionDataType = '';
+ public $backupOption;
+ public $size;
+ public $type;
+ public function setBackupOption(Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption$backupOption) {
+ $this->backupOption = $backupOption;
+ }
+ public function getBackupOption() {
+ return $this->backupOption;
+ }
+ public function setSize($size) {
+ $this->size = $size;
+ }
+ public function getSize() {
+ return $this->size;
+ }
+ public function setType($type) {
+ $this->type = $type;
+ }
+ public function getType() {
+ return $this->type;
+ }
+}
+
+class Google_Service_AdSenseHost_AdUnitContentAdsSettingsBackupOption
+ extends Google_Model {
+ public $color;
+ public $type;
+ public $url;
+ public function setColor($color) {
+ $this->color = $color;
+ }
+ public function getColor() {
+ return $this->color;
+ }
+ 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;
+ }
+}
+
+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 getMarkupLanguage() {
+ return $this->markupLanguage;
+ }
+ public function setScriptingLanguage($scriptingLanguage) {
+ $this->scriptingLanguage = $scriptingLanguage;
+ }
+ public function getScriptingLanguage() {
+ return $this->scriptingLanguage;
+ }
+ public function setSize($size) {
+ $this->size = $size;
+ }
+ public function getSize() {
+ return $this->size;
+ }
+ public function setType($type) {
+ $this->type = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $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;
+ public function setAccountId($accountId) {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId() {
+ return $this->accountId;
+ }
+ 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 setProductCodes($productCodes) {
+ $this->productCodes = $productCodes;
+ }
+ public function getProductCodes() {
+ return $this->productCodes;
+ }
+ public function setRedirectUrl($redirectUrl) {
+ $this->redirectUrl = $redirectUrl;
+ }
+ public function getRedirectUrl() {
+ return $this->redirectUrl;
+ }
+ public function setStatus($status) {
+ $this->status = $status;
+ }
+ public function getStatus() {
+ return $this->status;
+ }
+ public function setUserLocale($userLocale) {
+ $this->userLocale = $userLocale;
+ }
+ public function getUserLocale() {
+ return $this->userLocale;
+ }
+ public function setWebsiteLocale($websiteLocale) {
+ $this->websiteLocale = $websiteLocale;
+ }
+ public function getWebsiteLocale() {
+ return $this->websiteLocale;
+ }
+ public function setWebsiteUrl($websiteUrl) {
+ $this->websiteUrl = $websiteUrl;
+ }
+ public function getWebsiteUrl() {
+ return $this->websiteUrl;
+ }
+}
+
+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 getCode() {
+ return $this->code;
+ }
+ 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_AdSenseHost_CustomChannels
+ extends Google_Collection {
+ public $etag;
+ protected $__itemsType = 'Google_Service_AdSenseHost_CustomChannel';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $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 $headers;
+ public $kind;
+ public $rows;
+ public $totalMatchedRows;
+ public $totals;
+ public $warnings;
+ public function setAverages($averages) {
+ $this->averages = $averages;
+ }
+ public function getAverages() {
+ return $this->averages;
+ }
+ public function setHeaders($headers) {
+ $this->headers = $headers;
+ }
+ public function getHeaders() {
+ return $this->headers;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setRows($rows) {
+ $this->rows = $rows;
+ }
+ public function getRows() {
+ return $this->rows;
+ }
+ public function setTotalMatchedRows($totalMatchedRows) {
+ $this->totalMatchedRows = $totalMatchedRows;
+ }
+ public function getTotalMatchedRows() {
+ return $this->totalMatchedRows;
+ }
+ public function setTotals($totals) {
+ $this->totals = $totals;
+ }
+ public function getTotals() {
+ return $this->totals;
+ }
+ public function setWarnings($warnings) {
+ $this->warnings = $warnings;
+ }
+ public function getWarnings() {
+ return $this->warnings;
+ }
+}
+
+class Google_Service_AdSenseHost_ReportHeaders
+ extends Google_Model {
+ public $currency;
+ public $name;
+ public $type;
+ public function setCurrency($currency) {
+ $this->currency = $currency;
+ }
+ public function getCurrency() {
+ return $this->currency;
+ }
+ 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_AdSenseHost_UrlChannel
+ extends Google_Model {
+ public $id;
+ public $kind;
+ public $urlPattern;
+ 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 setUrlPattern($urlPattern) {
+ $this->urlPattern = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
diff --git a/src/Google/Service/Adexchangebuyer.php b/src/Google/Service/Adexchangebuyer.php
new file mode 100644
index 0000000..0aaa109
--- /dev/null
+++ b/src/Google/Service/Adexchangebuyer.php
@@ -0,0 +1,607 @@
+
+ * Lets you manage your Ad Exchange Buyer account.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Adexchangebuyer extends Google_Service { + public $accounts; + public $creatives; + public $directDeals; + /** + * Constructs the internal representation of the Adexchangebuyer service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'adexchangebuyer/v1.2/'; + $this->version = 'v1.2'; + $this->serviceName = 'adexchangebuyer'; + + $client->addService($this->serviceName, $this->version); + $this->accounts = new Google_Service_Adexchangebuyer_Accounts_Resource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"get": {"id": "adexchangebuyer.accounts.get", "path": "accounts/{id}", "httpMethod": "GET", "parameters": {"id": {"type": "integer", "required": true, "format": "int32", "location": "path"}}, "response": {"$ref": "Account"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}, "list": {"id": "adexchangebuyer.accounts.list", "path": "accounts", "httpMethod": "GET", "response": {"$ref": "AccountsList"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}, "patch": {"id": "adexchangebuyer.accounts.patch", "path": "accounts/{id}", "httpMethod": "PATCH", "parameters": {"id": {"type": "integer", "required": true, "format": "int32", "location": "path"}}, "request": {"$ref": "Account"}, "response": {"$ref": "Account"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}, "update": {"id": "adexchangebuyer.accounts.update", "path": "accounts/{id}", "httpMethod": "PUT", "parameters": {"id": {"type": "integer", "required": true, "format": "int32", "location": "path"}}, "request": {"$ref": "Account"}, "response": {"$ref": "Account"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}}}', true)); + $this->creatives = new Google_Service_Adexchangebuyer_Creatives_Resource($this, $this->serviceName, 'creatives', json_decode('{"methods": {"get": {"id": "adexchangebuyer.creatives.get", "path": "creatives/{accountId}/{buyerCreativeId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "buyerCreativeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Creative"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}, "insert": {"id": "adexchangebuyer.creatives.insert", "path": "creatives", "httpMethod": "POST", "request": {"$ref": "Creative"}, "response": {"$ref": "Creative"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}, "list": {"id": "adexchangebuyer.creatives.list", "path": "creatives", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "1", "maximum": "1000", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "statusFilter": {"type": "string", "enum": ["approved", "disapproved", "not_checked"], "location": "query"}}, "response": {"$ref": "CreativesList"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}}}', true)); + $this->directDeals = new Google_Service_Adexchangebuyer_DirectDeals_Resource($this, $this->serviceName, 'directDeals', json_decode('{"methods": {"get": {"id": "adexchangebuyer.directDeals.get", "path": "directdeals/{id}", "httpMethod": "GET", "parameters": {"id": {"type": "string", "required": true, "format": "int64", "location": "path"}}, "response": {"$ref": "DirectDeal"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}, "list": {"id": "adexchangebuyer.directDeals.list", "path": "directdeals", "httpMethod": "GET", "response": {"$ref": "DirectDealsList"}, "scopes": ["https://www.googleapis.com/auth/adexchange.buyer"]}}}', true)); + + } +} + + + /** + * The "accounts" collection of methods. + * Typical usage is: + *
+ * $adexchangebuyerService = new Google_AdexchangebuyerService(...);
+ * $accounts = $adexchangebuyerService->accounts;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Adexchangebuyer_Account($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the authenticated user's list of accounts. (accounts.list)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Adexchangebuyer_AccountsList
+ */
+ public function listAccounts($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Adexchangebuyer_AccountsList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Adexchangebuyer_Account($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Adexchangebuyer_Account($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "creatives" collection of methods.
+ * Typical usage is:
+ *
+ * $adexchangebuyerService = new Google_AdexchangebuyerService(...);
+ * $creatives = $adexchangebuyerService->creatives;
+ *
+ */
+ class Google_Service_Adexchangebuyer_Creatives_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Gets the status for a single creative. (creatives.get)
+ *
+ * @param int $accountId The id for the account that will serve this creative.
+ * @param string $buyerCreativeId The buyer-specific id for this creative.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Adexchangebuyer_Creative
+ */
+ public function get($accountId, $buyerCreativeId, $optParams = array()) {
+ $params = array('accountId' => $accountId, 'buyerCreativeId' => $buyerCreativeId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Adexchangebuyer_Creative($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Adexchangebuyer_Creative($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves a list of the authenticated user's active creatives. (creatives.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
+ * @opt_param string pageToken A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. Optional.
+ * @opt_param string statusFilter When specified, only creatives having the given status are returned.
+ * @return Google_Service_Adexchangebuyer_CreativesList
+ */
+ public function listCreatives($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Adexchangebuyer_CreativesList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "directDeals" collection of methods.
+ * Typical usage is:
+ *
+ * $adexchangebuyerService = new Google_AdexchangebuyerService(...);
+ * $directDeals = $adexchangebuyerService->directDeals;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Adexchangebuyer_DirectDeal($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the authenticated user's list of direct deals. (directDeals.list)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Adexchangebuyer_DirectDealsList
+ */
+ public function listDirectDeals($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Adexchangebuyer_DirectDealsList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Adexchangebuyer_Account
+ extends Google_Collection {
+ protected $__bidderLocationType = 'Google_Service_Adexchangebuyer_AccountBidderLocation';
+ protected $__bidderLocationDataType = 'array';
+ public $bidderLocation;
+ public $cookieMatchingNid;
+ public $cookieMatchingUrl;
+ public $id;
+ public $kind;
+ public $maximumTotalQps;
+ public function setBidderLocation($bidderLocation) {
+ $this->bidderLocation = $bidderLocation;
+ }
+ public function getBidderLocation() {
+ return $this->bidderLocation;
+ }
+ public function setCookieMatchingNid($cookieMatchingNid) {
+ $this->cookieMatchingNid = $cookieMatchingNid;
+ }
+ public function getCookieMatchingNid() {
+ return $this->cookieMatchingNid;
+ }
+ public function setCookieMatchingUrl($cookieMatchingUrl) {
+ $this->cookieMatchingUrl = $cookieMatchingUrl;
+ }
+ public function getCookieMatchingUrl() {
+ return $this->cookieMatchingUrl;
+ }
+ 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 setMaximumTotalQps($maximumTotalQps) {
+ $this->maximumTotalQps = $maximumTotalQps;
+ }
+ public function getMaximumTotalQps() {
+ return $this->maximumTotalQps;
+ }
+}
+
+class Google_Service_Adexchangebuyer_AccountBidderLocation
+ extends Google_Model {
+ public $maximumQps;
+ public $region;
+ public $url;
+ public function setMaximumQps($maximumQps) {
+ $this->maximumQps = $maximumQps;
+ }
+ public function getMaximumQps() {
+ return $this->maximumQps;
+ }
+ public function setRegion($region) {
+ $this->region = $region;
+ }
+ public function getRegion() {
+ return $this->region;
+ }
+ public function setUrl($url) {
+ $this->url = $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 $items;
+ 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_Adexchangebuyer_Creative
+ extends Google_Collection {
+ public $HTMLSnippet;
+ public $accountId;
+ public $advertiserId;
+ public $advertiserName;
+ public $agencyId;
+ public $attribute;
+ public $buyerCreativeId;
+ public $clickThroughUrl;
+ protected $__disapprovalReasonsType = 'Google_Service_Adexchangebuyer_CreativeDisapprovalReasons';
+ protected $__disapprovalReasonsDataType = 'array';
+ public $disapprovalReasons;
+ public $height;
+ public $kind;
+ public $productCategories;
+ public $sensitiveCategories;
+ public $status;
+ public $vendorType;
+ public $videoURL;
+ public $width;
+ public function setHTMLSnippet($HTMLSnippet) {
+ $this->HTMLSnippet = $HTMLSnippet;
+ }
+ public function getHTMLSnippet() {
+ return $this->HTMLSnippet;
+ }
+ public function setAccountId($accountId) {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId() {
+ return $this->accountId;
+ }
+ public function setAdvertiserId($advertiserId) {
+ $this->advertiserId = $advertiserId;
+ }
+ public function getAdvertiserId() {
+ return $this->advertiserId;
+ }
+ public function setAdvertiserName($advertiserName) {
+ $this->advertiserName = $advertiserName;
+ }
+ public function getAdvertiserName() {
+ return $this->advertiserName;
+ }
+ public function setAgencyId($agencyId) {
+ $this->agencyId = $agencyId;
+ }
+ public function getAgencyId() {
+ return $this->agencyId;
+ }
+ public function setAttribute($attribute) {
+ $this->attribute = $attribute;
+ }
+ public function getAttribute() {
+ return $this->attribute;
+ }
+ public function setBuyerCreativeId($buyerCreativeId) {
+ $this->buyerCreativeId = $buyerCreativeId;
+ }
+ public function getBuyerCreativeId() {
+ return $this->buyerCreativeId;
+ }
+ public function setClickThroughUrl($clickThroughUrl) {
+ $this->clickThroughUrl = $clickThroughUrl;
+ }
+ public function getClickThroughUrl() {
+ return $this->clickThroughUrl;
+ }
+ public function setDisapprovalReasons($disapprovalReasons) {
+ $this->disapprovalReasons = $disapprovalReasons;
+ }
+ public function getDisapprovalReasons() {
+ return $this->disapprovalReasons;
+ }
+ 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 setProductCategories($productCategories) {
+ $this->productCategories = $productCategories;
+ }
+ public function getProductCategories() {
+ return $this->productCategories;
+ }
+ public function setSensitiveCategories($sensitiveCategories) {
+ $this->sensitiveCategories = $sensitiveCategories;
+ }
+ public function getSensitiveCategories() {
+ return $this->sensitiveCategories;
+ }
+ public function setStatus($status) {
+ $this->status = $status;
+ }
+ public function getStatus() {
+ return $this->status;
+ }
+ public function setVendorType($vendorType) {
+ $this->vendorType = $vendorType;
+ }
+ public function getVendorType() {
+ return $this->vendorType;
+ }
+ public function setVideoURL($videoURL) {
+ $this->videoURL = $videoURL;
+ }
+ public function getVideoURL() {
+ return $this->videoURL;
+ }
+ public function setWidth($width) {
+ $this->width = $width;
+ }
+ public function getWidth() {
+ return $this->width;
+ }
+}
+
+class Google_Service_Adexchangebuyer_CreativeDisapprovalReasons
+ extends Google_Collection {
+ public $details;
+ public $reason;
+ public function setDetails($details) {
+ $this->details = $details;
+ }
+ public function getDetails() {
+ return $this->details;
+ }
+ public function setReason($reason) {
+ $this->reason = $reason;
+ }
+ public function getReason() {
+ return $this->reason;
+ }
+}
+
+class Google_Service_Adexchangebuyer_CreativesList
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Adexchangebuyer_Creative';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_Adexchangebuyer_DirectDeal
+ extends Google_Model {
+ public $accountId;
+ public $advertiser;
+ public $currencyCode;
+ public $endTime;
+ public $fixedCpm;
+ public $id;
+ public $kind;
+ public $privateExchangeMinCpm;
+ public $sellerNetwork;
+ public $startTime;
+ public function setAccountId($accountId) {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId() {
+ return $this->accountId;
+ }
+ public function setAdvertiser($advertiser) {
+ $this->advertiser = $advertiser;
+ }
+ public function getAdvertiser() {
+ return $this->advertiser;
+ }
+ public function setCurrencyCode($currencyCode) {
+ $this->currencyCode = $currencyCode;
+ }
+ public function getCurrencyCode() {
+ return $this->currencyCode;
+ }
+ public function setEndTime($endTime) {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime() {
+ return $this->endTime;
+ }
+ public function setFixedCpm($fixedCpm) {
+ $this->fixedCpm = $fixedCpm;
+ }
+ public function getFixedCpm() {
+ return $this->fixedCpm;
+ }
+ 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 setPrivateExchangeMinCpm($privateExchangeMinCpm) {
+ $this->privateExchangeMinCpm = $privateExchangeMinCpm;
+ }
+ public function getPrivateExchangeMinCpm() {
+ return $this->privateExchangeMinCpm;
+ }
+ public function setSellerNetwork($sellerNetwork) {
+ $this->sellerNetwork = $sellerNetwork;
+ }
+ public function getSellerNetwork() {
+ return $this->sellerNetwork;
+ }
+ public function setStartTime($startTime) {
+ $this->startTime = $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 $directDeals;
+ public $kind;
+ public function setDirectDeals($directDeals) {
+ $this->directDeals = $directDeals;
+ }
+ public function getDirectDeals() {
+ return $this->directDeals;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+}
diff --git a/src/Google/Service/Analytics.php b/src/Google/Service/Analytics.php
new file mode 100644
index 0000000..b53a13c
--- /dev/null
+++ b/src/Google/Service/Analytics.php
@@ -0,0 +1,2922 @@
+
+ * View and manage your Google Analytics data
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Analytics extends Google_Service { + public $data_ga; + public $data_mcf; + public $management_accounts; + public $management_customDataSources; + public $management_dailyUploads; + public $management_experiments; + public $management_goals; + public $management_profiles; + public $management_segments; + public $management_webproperties; + /** + * Constructs the internal representation of the Analytics service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'analytics/v3/'; + $this->version = 'v3'; + $this->serviceName = 'analytics'; + + $client->addService($this->serviceName, $this->version); + $this->data_ga = new Google_Service_Analytics_DataGa_Resource($this, $this->serviceName, 'ga', json_decode('{"methods": {"get": {"id": "analytics.data.ga.get", "path": "data/ga", "httpMethod": "GET", "parameters": {"dimensions": {"type": "string", "location": "query"}, "end-date": {"type": "string", "required": true, "location": "query"}, "filters": {"type": "string", "location": "query"}, "ids": {"type": "string", "required": true, "location": "query"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "metrics": {"type": "string", "required": true, "location": "query"}, "segment": {"type": "string", "location": "query"}, "sort": {"type": "string", "location": "query"}, "start-date": {"type": "string", "required": true, "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "GaData"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true)); + $this->data_mcf = new Google_Service_Analytics_DataMcf_Resource($this, $this->serviceName, 'mcf', json_decode('{"methods": {"get": {"id": "analytics.data.mcf.get", "path": "data/mcf", "httpMethod": "GET", "parameters": {"dimensions": {"type": "string", "location": "query"}, "end-date": {"type": "string", "required": true, "location": "query"}, "filters": {"type": "string", "location": "query"}, "ids": {"type": "string", "required": true, "location": "query"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "metrics": {"type": "string", "required": true, "location": "query"}, "sort": {"type": "string", "location": "query"}, "start-date": {"type": "string", "required": true, "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "McfData"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true)); + $this->management_accounts = new Google_Service_Analytics_ManagementAccounts_Resource($this, $this->serviceName, 'accounts', json_decode('{"methods": {"list": {"id": "analytics.management.accounts.list", "path": "management/accounts", "httpMethod": "GET", "parameters": {"max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "Accounts"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true)); + $this->management_customDataSources = new Google_Service_Analytics_ManagementCustomDataSources_Resource($this, $this->serviceName, 'customDataSources', json_decode('{"methods": {"list": {"id": "analytics.management.customDataSources.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CustomDataSources"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true)); + $this->management_dailyUploads = new Google_Service_Analytics_ManagementDailyUploads_Resource($this, $this->serviceName, 'dailyUploads', json_decode('{"methods": {"delete": {"id": "analytics.management.dailyUploads.delete", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "date": {"type": "string", "required": true, "location": "path"}, "type": {"type": "string", "required": true, "enum": ["cost"], "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "list": {"id": "analytics.management.dailyUploads.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "end-date": {"type": "string", "required": true, "location": "query"}, "max-results": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "start-date": {"type": "string", "required": true, "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "DailyUploads"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "upload": {"id": "analytics.management.dailyUploads.upload", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "appendNumber": {"type": "integer", "required": true, "format": "int32", "minimum": "1", "maximum": "20", "location": "query"}, "customDataSourceId": {"type": "string", "required": true, "location": "path"}, "date": {"type": "string", "required": true, "location": "path"}, "reset": {"type": "boolean", "default": "false", "location": "query"}, "type": {"type": "string", "required": true, "enum": ["cost"], "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "DailyUploadAppend"}, "scopes": ["https://www.googleapis.com/auth/analytics"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["application/octet-stream"], "maxSize": "5MB", "protocols": {"simple": {"multipart": true, "path": "/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads"}, "resumable": {"multipart": true, "path": "/resumable/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/dailyUploads/{date}/uploads"}}}}}}', true)); + $this->management_experiments = new Google_Service_Analytics_ManagementExperiments_Resource($this, $this->serviceName, 'experiments', json_decode('{"methods": {"delete": {"id": "analytics.management.experiments.delete", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}", "httpMethod": "DELETE", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "experimentId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "get": {"id": "analytics.management.experiments.get", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "experimentId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Experiment"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "insert": {"id": "analytics.management.experiments.insert", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments", "httpMethod": "POST", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Experiment"}, "response": {"$ref": "Experiment"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "list": {"id": "analytics.management.experiments.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "profileId": {"type": "string", "required": true, "location": "path"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Experiments"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}, "patch": {"id": "analytics.management.experiments.patch", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}", "httpMethod": "PATCH", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "experimentId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Experiment"}, "response": {"$ref": "Experiment"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}, "update": {"id": "analytics.management.experiments.update", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}", "httpMethod": "PUT", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "experimentId": {"type": "string", "required": true, "location": "path"}, "profileId": {"type": "string", "required": true, "location": "path"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Experiment"}, "response": {"$ref": "Experiment"}, "scopes": ["https://www.googleapis.com/auth/analytics"]}}}', true)); + $this->management_goals = new Google_Service_Analytics_ManagementGoals_Resource($this, $this->serviceName, 'goals', json_decode('{"methods": {"list": {"id": "analytics.management.goals.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "profileId": {"type": "string", "required": true, "location": "path"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Goals"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true)); + $this->management_profiles = new Google_Service_Analytics_ManagementProfiles_Resource($this, $this->serviceName, 'profiles', json_decode('{"methods": {"list": {"id": "analytics.management.profiles.list", "path": "management/accounts/{accountId}/webproperties/{webPropertyId}/profiles", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "webPropertyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Profiles"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true)); + $this->management_segments = new Google_Service_Analytics_ManagementSegments_Resource($this, $this->serviceName, 'segments', json_decode('{"methods": {"list": {"id": "analytics.management.segments.list", "path": "management/segments", "httpMethod": "GET", "parameters": {"max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "Segments"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true)); + $this->management_webproperties = new Google_Service_Analytics_ManagementWebproperties_Resource($this, $this->serviceName, 'webproperties', json_decode('{"methods": {"list": {"id": "analytics.management.webproperties.list", "path": "management/accounts/{accountId}/webproperties", "httpMethod": "GET", "parameters": {"accountId": {"type": "string", "required": true, "location": "path"}, "max-results": {"type": "integer", "format": "int32", "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "Webproperties"}, "scopes": ["https://www.googleapis.com/auth/analytics", "https://www.googleapis.com/auth/analytics.readonly"]}}}', true)); + + } +} + + + /** + * The "data" collection of methods. + * Typical usage is: + *
+ * $analyticsService = new Google_AnalyticsService(...);
+ * $data = $analyticsService->data;
+ *
+ */
+ class Google_Service_Analytics_Data_Resource extends Google_Service_Resource {
+
+
+ }
+
+ /**
+ * The "ga" collection of methods.
+ * Typical usage is:
+ *
+ * $analyticsService = new Google_AnalyticsService(...);
+ * $ga = $analyticsService->ga;
+ *
+ */
+ class Google_Service_Analytics_DataGa_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Returns Analytics data for a 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 profile ID.
+ * @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
+ * @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
+ * @param string $metrics A comma-separated list of Analytics metrics. E.g., 'ga:visits,ga:pageviews'. At least one metric must be specified.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string dimensions A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
+ * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to Analytics data.
+ * @opt_param int max-results The maximum number of entries to include in this feed.
+ * @opt_param string segment An Analytics advanced segment to be applied to data.
+ * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for Analytics data.
+ * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_GaData
+ */
+ public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
+ $params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Analytics_GaData($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "mcf" collection of methods.
+ * Typical usage is:
+ *
+ * $analyticsService = new Google_AnalyticsService(...);
+ * $mcf = $analyticsService->mcf;
+ *
+ */
+ class Google_Service_Analytics_DataMcf_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Returns Analytics Multi-Channel Funnels data for a profile. (mcf.get)
+ *
+ * @param string $ids Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics profile ID.
+ * @param string $start_date Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD.
+ * @param string $end_date End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD.
+ * @param string $metrics A comma-separated list of Multi-Channel Funnels metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string dimensions A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'.
+ * @opt_param string filters A comma-separated list of dimension or metric filters to be applied to the Analytics data.
+ * @opt_param int max-results The maximum number of entries to include in this feed.
+ * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.
+ * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_McfData
+ */
+ public function get($ids, $start_date, $end_date, $metrics, $optParams = array()) {
+ $params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Analytics_McfData($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "management" collection of methods.
+ * Typical usage is:
+ *
+ * $analyticsService = new Google_AnalyticsService(...);
+ * $management = $analyticsService->management;
+ *
+ */
+ class Google_Service_Analytics_Management_Resource extends Google_Service_Resource {
+
+
+ }
+
+ /**
+ * The "accounts" collection of methods.
+ * Typical usage is:
+ *
+ * $analyticsService = new Google_AnalyticsService(...);
+ * $accounts = $analyticsService->accounts;
+ *
+ */
+ class Google_Service_Analytics_ManagementAccounts_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Lists all accounts to which the user has access. (accounts.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Analytics_Accounts($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "customDataSources" collection of methods.
+ * Typical usage is:
+ *
+ * $analyticsService = new Google_AnalyticsService(...);
+ * $customDataSources = $analyticsService->customDataSources;
+ *
+ */
+ class Google_Service_Analytics_ManagementCustomDataSources_Resource extends Google_Service_Resource {
+
+
+ /**
+ * List custom data sources to which the user has access. (customDataSources.list)
+ *
+ * @param string $accountId Account Id for the custom data sources to retrieve.
+ * @param string $webPropertyId Web property Id for the custom data sources to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of custom data sources to include in this response.
+ * @opt_param int start-index A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_CustomDataSources
+ */
+ public function listManagementCustomDataSources($accountId, $webPropertyId, $optParams = array()) {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Analytics_CustomDataSources($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "dailyUploads" collection of methods.
+ * Typical usage is:
+ *
+ * $analyticsService = new Google_AnalyticsService(...);
+ * $dailyUploads = $analyticsService->dailyUploads;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * List daily uploads to which the user has access. (dailyUploads.list)
+ *
+ * @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 $start_date Start date of the form YYYY-MM-DD.
+ * @param string $end_date 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, $start_date, $end_date, $optParams = array()) {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'start-date' => $start_date, 'end-date' => $end_date);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Analytics_DailyUploads($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('upload', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Analytics_DailyUploadAppend($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "experiments" collection of methods.
+ * Typical usage is:
+ *
+ * $analyticsService = new Google_AnalyticsService(...);
+ * $experiments = $analyticsService->experiments;
+ *
+ */
+ 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 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Analytics_Experiment($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Analytics_Experiment($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Lists experiments to which the user has access. (experiments.list)
+ *
+ * @param string $accountId Account ID to retrieve experiments for.
+ * @param string $webPropertyId Web property ID to retrieve experiments for.
+ * @param string $profileId Profile ID to retrieve experiments for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of experiments to include in this response.
+ * @opt_param int start-index An index of the first experiment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_Experiments
+ */
+ public function listManagementExperiments($accountId, $webPropertyId, $profileId, $optParams = array()) {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Analytics_Experiments($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Analytics_Experiment($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Analytics_Experiment($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "goals" collection of methods.
+ * Typical usage is:
+ *
+ * $analyticsService = new Google_AnalyticsService(...);
+ * $goals = $analyticsService->goals;
+ *
+ */
+ class Google_Service_Analytics_ManagementGoals_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Lists goals to which the user has access. (goals.list)
+ *
+ * @param string $accountId Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to.
+ * @param string $webPropertyId Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.
+ * @param string $profileId Profile ID to retrieve goals for. Can either be a specific profile ID or '~all', which refers to all the profiles that user has access to.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of goals to include in this response.
+ * @opt_param int start-index An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_Goals
+ */
+ public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = array()) {
+ $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Analytics_Goals($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "profiles" collection of methods.
+ * Typical usage is:
+ *
+ * $analyticsService = new Google_AnalyticsService(...);
+ * $profiles = $analyticsService->profiles;
+ *
+ */
+ class Google_Service_Analytics_ManagementProfiles_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Lists profiles to which the user has access. (profiles.list)
+ *
+ * @param string $accountId Account ID for the profiles to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access.
+ * @param string $webPropertyId Web property ID for the profiles to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of 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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Analytics_Profiles($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "segments" collection of methods.
+ * Typical usage is:
+ *
+ * $analyticsService = new Google_AnalyticsService(...);
+ * $segments = $analyticsService->segments;
+ *
+ */
+ class Google_Service_Analytics_ManagementSegments_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Lists advanced segments to which the user has access. (segments.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int max-results The maximum number of advanced segments to include in this response.
+ * @opt_param int start-index An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
+ * @return Google_Service_Analytics_Segments
+ */
+ public function listManagementSegments($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Analytics_Segments($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "webproperties" collection of methods.
+ * Typical usage is:
+ *
+ * $analyticsService = new Google_AnalyticsService(...);
+ * $webproperties = $analyticsService->webproperties;
+ *
+ */
+ class Google_Service_Analytics_ManagementWebproperties_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Lists web properties to which the user has access. (webproperties.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Analytics_Webproperties($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Analytics_Account
+ extends Google_Model {
+ protected $__childLinkType = 'Google_Service_Analytics_AccountChildLink';
+ protected $__childLinkDataType = '';
+ public $childLink;
+ public $created;
+ public $id;
+ public $kind;
+ public $name;
+ 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 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;
+ 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_Accounts
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Analytics_Account';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_CustomDataSource
+ extends Google_Collection {
+ public $accountId;
+ protected $__childLinkType = 'Google_Service_Analytics_CustomDataSourceChildLink';
+ protected $__childLinkDataType = '';
+ public $childLink;
+ public $created;
+ public $description;
+ public $id;
+ public $kind;
+ public $name;
+ protected $__parentLinkType = 'Google_Service_Analytics_CustomDataSourceParentLink';
+ protected $__parentLinkDataType = '';
+ public $parentLink;
+ public $profilesLinked;
+ public $selfLink;
+ public $updated;
+ 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 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 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_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_CustomDataSources
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Analytics_CustomDataSource';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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 = '';
+ public $parentLink;
+ protected $__recentChangesType = 'Google_Service_Analytics_DailyUploadRecentChanges';
+ protected $__recentChangesDataType = 'array';
+ public $recentChanges;
+ 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_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_DailyUploads
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Analytics_DailyUpload';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_Experiment
+ extends Google_Collection {
+ public $accountId;
+ public $created;
+ public $description;
+ public $editableInGaUi;
+ public $endTime;
+ public $id;
+ public $internalWebPropertyId;
+ public $kind;
+ public $minimumExperimentLengthInDays;
+ public $name;
+ public $objectiveMetric;
+ public $optimizationType;
+ protected $__parentLinkType = 'Google_Service_Analytics_ExperimentParentLink';
+ protected $__parentLinkDataType = '';
+ public $parentLink;
+ 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 $variations;
+ 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 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_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 $items;
+ 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 $columnHeaders;
+ public $containsSampledData;
+ public $id;
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ protected $__profileInfoType = 'Google_Service_Analytics_GaDataProfileInfo';
+ protected $__profileInfoDataType = '';
+ public $profileInfo;
+ protected $__queryType = 'Google_Service_Analytics_GaDataQuery';
+ protected $__queryDataType = '';
+ public $query;
+ public $rows;
+ 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_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 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_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 $end_date;
+ public $filters;
+ public $ids;
+ public $max_results;
+ public $metrics;
+ public $segment;
+ public $sort;
+ public $start_date;
+ public $start_index;
+ public function setDimensions($dimensions) {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions() {
+ return $this->dimensions;
+ }
+ public function setEnd_date($end_date) {
+ $this->end_date = $end_date;
+ }
+ public function getEnd_date() {
+ return $this->end_date;
+ }
+ 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 setMax_results($max_results) {
+ $this->max_results = $max_results;
+ }
+ public function getMax_results() {
+ return $this->max_results;
+ }
+ public function setMetrics($metrics) {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics() {
+ return $this->metrics;
+ }
+ 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 setStart_date($start_date) {
+ $this->start_date = $start_date;
+ }
+ public function getStart_date() {
+ return $this->start_date;
+ }
+ public function setStart_index($start_index) {
+ $this->start_index = $start_index;
+ }
+ public function getStart_index() {
+ return $this->start_index;
+ }
+}
+
+class Google_Service_Analytics_Goal
+ extends Google_Model {
+ public $accountId;
+ public $active;
+ public $created;
+ protected $__eventDetailsType = 'Google_Service_Analytics_GoalEventDetails';
+ protected $__eventDetailsDataType = '';
+ public $eventDetails;
+ public $id;
+ public $internalWebPropertyId;
+ public $kind;
+ public $name;
+ protected $__parentLinkType = 'Google_Service_Analytics_GoalParentLink';
+ protected $__parentLinkDataType = '';
+ public $parentLink;
+ public $profileId;
+ public $selfLink;
+ public $type;
+ public $updated;
+ protected $__urlDestinationDetailsType = 'Google_Service_Analytics_GoalUrlDestinationDetails';
+ protected $__urlDestinationDetailsDataType = '';
+ public $urlDestinationDetails;
+ public $value;
+ protected $__visitNumPagesDetailsType = 'Google_Service_Analytics_GoalVisitNumPagesDetails';
+ protected $__visitNumPagesDetailsDataType = '';
+ public $visitNumPagesDetails;
+ protected $__visitTimeOnSiteDetailsType = 'Google_Service_Analytics_GoalVisitTimeOnSiteDetails';
+ protected $__visitTimeOnSiteDetailsDataType = '';
+ public $visitTimeOnSiteDetails;
+ 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 $eventConditions;
+ 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_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 $steps;
+ 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_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_Goals
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Analytics_Goal';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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 $columnHeaders;
+ public $containsSampledData;
+ public $id;
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ protected $__profileInfoType = 'Google_Service_Analytics_McfDataProfileInfo';
+ protected $__profileInfoDataType = '';
+ public $profileInfo;
+ protected $__queryType = 'Google_Service_Analytics_McfDataQuery';
+ protected $__queryDataType = '';
+ public $query;
+ protected $__rowsType = 'Google_Service_Analytics_McfDataRows';
+ protected $__rowsDataType = 'array';
+ public $rows;
+ 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 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_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 $end_date;
+ public $filters;
+ public $ids;
+ public $max_results;
+ public $metrics;
+ public $segment;
+ public $sort;
+ public $start_date;
+ public $start_index;
+ public function setDimensions($dimensions) {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions() {
+ return $this->dimensions;
+ }
+ public function setEnd_date($end_date) {
+ $this->end_date = $end_date;
+ }
+ public function getEnd_date() {
+ return $this->end_date;
+ }
+ 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 setMax_results($max_results) {
+ $this->max_results = $max_results;
+ }
+ public function getMax_results() {
+ return $this->max_results;
+ }
+ public function setMetrics($metrics) {
+ $this->metrics = $metrics;
+ }
+ public function getMetrics() {
+ return $this->metrics;
+ }
+ 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 setStart_date($start_date) {
+ $this->start_date = $start_date;
+ }
+ public function getStart_date() {
+ return $this->start_date;
+ }
+ public function setStart_index($start_index) {
+ $this->start_index = $start_index;
+ }
+ public function getStart_index() {
+ return $this->start_index;
+ }
+}
+
+class Google_Service_Analytics_McfDataRows
+ extends Google_Collection {
+ protected $__conversionPathValueType = 'Google_Service_Analytics_McfDataRowsConversionPathValue';
+ protected $__conversionPathValueDataType = 'array';
+ public $conversionPathValue;
+ 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_Profile
+ extends Google_Model {
+ public $accountId;
+ protected $__childLinkType = 'Google_Service_Analytics_ProfileChildLink';
+ protected $__childLinkDataType = '';
+ public $childLink;
+ 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 = '';
+ public $parentLink;
+ public $selfLink;
+ public $siteSearchCategoryParameters;
+ public $siteSearchQueryParameters;
+ 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 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 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_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_Profiles
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Analytics_Profile';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_Segment
+ extends Google_Model {
+ public $created;
+ public $definition;
+ public $id;
+ public $kind;
+ public $name;
+ public $segmentId;
+ public $selfLink;
+ 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 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 $items;
+ 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 $items;
+ 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 $childLink;
+ public $created;
+ public $id;
+ public $internalWebPropertyId;
+ public $kind;
+ public $level;
+ public $name;
+ protected $__parentLinkType = 'Google_Service_Analytics_WebpropertyParentLink';
+ protected $__parentLinkDataType = '';
+ public $parentLink;
+ 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 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 setParentLink(Google_Service_Analytics_WebpropertyParentLink$parentLink) {
+ $this->parentLink = $parentLink;
+ }
+ public function getParentLink() {
+ return $this->parentLink;
+ }
+ 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_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;
+ }
+}
diff --git a/src/Google/Service/Androidpublisher.php b/src/Google/Service/Androidpublisher.php
new file mode 100644
index 0000000..76fba09
--- /dev/null
+++ b/src/Google/Service/Androidpublisher.php
@@ -0,0 +1,130 @@
+
+ * Lets Android application developers access their Google Play accounts.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Androidpublisher extends Google_Service { + public $purchases; + /** + * Constructs the internal representation of the Androidpublisher service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'androidpublisher/v1/applications/'; + $this->version = 'v1'; + $this->serviceName = 'androidpublisher'; + + $client->addService($this->serviceName, $this->version); + $this->purchases = new Google_Service_Androidpublisher_Purchases_Resource($this, $this->serviceName, 'purchases', json_decode('{"methods": {"cancel": {"id": "androidpublisher.purchases.cancel", "path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}/cancel", "httpMethod": "POST", "parameters": {"packageName": {"type": "string", "required": true, "location": "path"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}, "token": {"type": "string", "required": true, "location": "path"}}}, "get": {"id": "androidpublisher.purchases.get", "path": "{packageName}/subscriptions/{subscriptionId}/purchases/{token}", "httpMethod": "GET", "parameters": {"packageName": {"type": "string", "required": true, "location": "path"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}, "token": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "SubscriptionPurchase"}}}}', true)); + + } +} + + + /** + * The "purchases" collection of methods. + * Typical usage is: + *
+ * $androidpublisherService = new Google_AndroidpublisherService(...);
+ * $purchases = $androidpublisherService->purchases;
+ *
+ */
+ class Google_Service_Androidpublisher_Purchases_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
+ * (purchases.cancel)
+ *
+ * @param string $packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
+ * @param string $subscriptionId The purchased subscription ID (for example, 'monthly001').
+ * @param string $token The token provided to the user's device when the subscription was purchased.
+ * @param array $optParams Optional parameters.
+ */
+ public function cancel($packageName, $subscriptionId, $token, $optParams = array()) {
+ $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('cancel', array($params));
+ return $data;
+ }
+ /**
+ * Checks whether a user's subscription purchase is valid and returns its expiry time.
+ * (purchases.get)
+ *
+ * @param string $packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
+ * @param string $subscriptionId The purchased subscription ID (for example, 'monthly001').
+ * @param string $token The token provided to the user's device when the subscription was purchased.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Androidpublisher_SubscriptionPurchase
+ */
+ public function get($packageName, $subscriptionId, $token, $optParams = array()) {
+ $params = array('packageName' => $packageName, 'subscriptionId' => $subscriptionId, 'token' => $token);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Androidpublisher_SubscriptionPurchase($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Androidpublisher_SubscriptionPurchase
+ extends Google_Model {
+ public $autoRenewing;
+ public $initiationTimestampMsec;
+ public $kind;
+ public $validUntilTimestampMsec;
+ public function setAutoRenewing($autoRenewing) {
+ $this->autoRenewing = $autoRenewing;
+ }
+ public function getAutoRenewing() {
+ return $this->autoRenewing;
+ }
+ public function setInitiationTimestampMsec($initiationTimestampMsec) {
+ $this->initiationTimestampMsec = $initiationTimestampMsec;
+ }
+ public function getInitiationTimestampMsec() {
+ return $this->initiationTimestampMsec;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setValidUntilTimestampMsec($validUntilTimestampMsec) {
+ $this->validUntilTimestampMsec = $validUntilTimestampMsec;
+ }
+ public function getValidUntilTimestampMsec() {
+ return $this->validUntilTimestampMsec;
+ }
+}
diff --git a/src/Google/Service/Audit.php b/src/Google/Service/Audit.php
new file mode 100644
index 0000000..f7a4963
--- /dev/null
+++ b/src/Google/Service/Audit.php
@@ -0,0 +1,279 @@
+
+ * Lets you access user activities in your enterprise made through various applications.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Audit extends Google_Service { + public $activities; + /** + * Constructs the internal representation of the Audit service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'apps/reporting/audit/v1/'; + $this->version = 'v1'; + $this->serviceName = 'audit'; + + $client->addService($this->serviceName, $this->version); + $this->activities = new Google_Service_Audit_Activities_Resource($this, $this->serviceName, 'activities', json_decode('{"methods": {"list": {"id": "audit.activities.list", "path": "{customerId}/{applicationId}", "httpMethod": "GET", "parameters": {"actorApplicationId": {"type": "string", "format": "int64", "location": "query"}, "actorEmail": {"type": "string", "location": "query"}, "actorIpAddress": {"type": "string", "location": "query"}, "applicationId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "caller": {"type": "string", "enum": ["application_owner", "customer"], "location": "query"}, "continuationToken": {"type": "string", "location": "query"}, "customerId": {"type": "string", "required": true, "location": "path"}, "endTime": {"type": "string", "location": "query"}, "eventName": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "1", "maximum": "1000", "location": "query"}, "startTime": {"type": "string", "location": "query"}}, "response": {"$ref": "Activities"}}}}', true)); + + } +} + + + /** + * The "activities" collection of methods. + * Typical usage is: + *
+ * $auditService = new Google_AuditService(...);
+ * $activities = $auditService->activities;
+ *
+ */
+ class Google_Service_Audit_Activities_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Retrieves a list of activities for a specific customer and application. (activities.list)
+ *
+ * @param string $customerId Represents the customer who is the owner of target object on which action was performed.
+ * @param string $applicationId Application ID of the application on which the event was performed.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string actorApplicationId Application ID of the application which interacted on behalf of the user while performing the event.
+ * @opt_param string actorEmail Email address of the user who performed the action.
+ * @opt_param string actorIpAddress IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
+ * @opt_param string caller Type of the caller.
+ * @opt_param string continuationToken Next page URL.
+ * @opt_param string endTime Return events which occured at or before this time.
+ * @opt_param string eventName Name of the event being queried.
+ * @opt_param int maxResults Number of activity records to be shown in each page.
+ * @opt_param string startTime Return events which occured at or after this time.
+ * @return Google_Service_Audit_Activities
+ */
+ public function listActivities($customerId, $applicationId, $optParams = array()) {
+ $params = array('customerId' => $customerId, 'applicationId' => $applicationId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Audit_Activities($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Audit_Activities
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Audit_Activity';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $next;
+ 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 setNext($next) {
+ $this->next = $next;
+ }
+ public function getNext() {
+ return $this->next;
+ }
+}
+
+class Google_Service_Audit_Activity
+ extends Google_Collection {
+ protected $__actorType = 'Google_Service_Audit_ActivityActor';
+ protected $__actorDataType = '';
+ public $actor;
+ protected $__eventsType = 'Google_Service_Audit_ActivityEvents';
+ protected $__eventsDataType = 'array';
+ public $events;
+ protected $__idType = 'Google_Service_Audit_ActivityId';
+ protected $__idDataType = '';
+ public $id;
+ public $ipAddress;
+ public $kind;
+ public $ownerDomain;
+ public function setActor(Google_Service_Audit_ActivityActor$actor) {
+ $this->actor = $actor;
+ }
+ public function getActor() {
+ return $this->actor;
+ }
+ public function setEvents($events) {
+ $this->events = $events;
+ }
+ public function getEvents() {
+ return $this->events;
+ }
+ public function setId(Google_Service_Audit_ActivityId$id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setIpAddress($ipAddress) {
+ $this->ipAddress = $ipAddress;
+ }
+ public function getIpAddress() {
+ return $this->ipAddress;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setOwnerDomain($ownerDomain) {
+ $this->ownerDomain = $ownerDomain;
+ }
+ public function getOwnerDomain() {
+ return $this->ownerDomain;
+ }
+}
+
+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 getApplicationId() {
+ return $this->applicationId;
+ }
+ public function setCallerType($callerType) {
+ $this->callerType = $callerType;
+ }
+ public function getCallerType() {
+ return $this->callerType;
+ }
+ public function setEmail($email) {
+ $this->email = $email;
+ }
+ public function getEmail() {
+ return $this->email;
+ }
+ public function setKey($key) {
+ $this->key = $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';
+ public $parameters;
+ public function setEventType($eventType) {
+ $this->eventType = $eventType;
+ }
+ public function getEventType() {
+ return $this->eventType;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setParameters($parameters) {
+ $this->parameters = $parameters;
+ }
+ public function getParameters() {
+ return $this->parameters;
+ }
+}
+
+class Google_Service_Audit_ActivityEventsParameters
+ extends Google_Model {
+ public $name;
+ public $value;
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setValue($value) {
+ $this->value = $value;
+ }
+ public function getValue() {
+ return $this->value;
+ }
+}
+
+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 getApplicationId() {
+ return $this->applicationId;
+ }
+ public function setCustomerId($customerId) {
+ $this->customerId = $customerId;
+ }
+ public function getCustomerId() {
+ return $this->customerId;
+ }
+ public function setTime($time) {
+ $this->time = $time;
+ }
+ public function getTime() {
+ return $this->time;
+ }
+ public function setUniqQualifier($uniqQualifier) {
+ $this->uniqQualifier = $uniqQualifier;
+ }
+ public function getUniqQualifier() {
+ return $this->uniqQualifier;
+ }
+}
diff --git a/src/Google/Service/Bigquery.php b/src/Google/Service/Bigquery.php
new file mode 100644
index 0000000..bbb4894
--- /dev/null
+++ b/src/Google/Service/Bigquery.php
@@ -0,0 +1,2010 @@
+
+ * A data platform for customers to create, manage, share and query data.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Bigquery extends Google_Service { + 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) { + $this->servicePath = 'bigquery/v2/'; + $this->version = 'v2'; + $this->serviceName = 'bigquery'; + + $client->addService($this->serviceName, $this->version); + $this->datasets = new Google_Service_Bigquery_Datasets_Resource($this, $this->serviceName, 'datasets', json_decode('{"methods": {"delete": {"id": "bigquery.datasets.delete", "path": "projects/{projectId}/datasets/{datasetId}", "httpMethod": "DELETE", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "deleteContents": {"type": "boolean", "location": "query"}, "projectId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}, "get": {"id": "bigquery.datasets.get", "path": "projects/{projectId}/datasets/{datasetId}", "httpMethod": "GET", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Dataset"}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}, "insert": {"id": "bigquery.datasets.insert", "path": "projects/{projectId}/datasets", "httpMethod": "POST", "parameters": {"projectId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}, "list": {"id": "bigquery.datasets.list", "path": "projects/{projectId}/datasets", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projectId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "DatasetList"}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}, "patch": {"id": "bigquery.datasets.patch", "path": "projects/{projectId}/datasets/{datasetId}", "httpMethod": "PATCH", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}, "update": {"id": "bigquery.datasets.update", "path": "projects/{projectId}/datasets/{datasetId}", "httpMethod": "PUT", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Dataset"}, "response": {"$ref": "Dataset"}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}}}', true)); + $this->jobs = new Google_Service_Bigquery_Jobs_Resource($this, $this->serviceName, 'jobs', json_decode('{"methods": {"get": {"id": "bigquery.jobs.get", "path": "projects/{projectId}/jobs/{jobId}", "httpMethod": "GET", "parameters": {"jobId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Job"}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}, "getQueryResults": {"id": "bigquery.jobs.getQueryResults", "path": "projects/{projectId}/queries/{jobId}", "httpMethod": "GET", "parameters": {"jobId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projectId": {"type": "string", "required": true, "location": "path"}, "startIndex": {"type": "string", "format": "uint64", "location": "query"}, "timeoutMs": {"type": "integer", "format": "uint32", "location": "query"}}, "response": {"$ref": "GetQueryResultsResponse"}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}, "insert": {"id": "bigquery.jobs.insert", "path": "projects/{projectId}/jobs", "httpMethod": "POST", "parameters": {"projectId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Job"}, "response": {"$ref": "Job"}, "scopes": ["https://www.googleapis.com/auth/bigquery", "https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["application/octet-stream"], "protocols": {"simple": {"multipart": true, "path": "/upload/bigquery/v2/projects/{projectId}/jobs"}, "resumable": {"multipart": true, "path": "/resumable/upload/bigquery/v2/projects/{projectId}/jobs"}}}}, "list": {"id": "bigquery.jobs.list", "path": "projects/{projectId}/jobs", "httpMethod": "GET", "parameters": {"allUsers": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projectId": {"type": "string", "required": true, "location": "path"}, "projection": {"type": "string", "enum": ["full", "minimal"], "location": "query"}, "stateFilter": {"type": "string", "enum": ["done", "pending", "running"], "repeated": true, "location": "query"}}, "response": {"$ref": "JobList"}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}, "query": {"id": "bigquery.jobs.query", "path": "projects/{projectId}/queries", "httpMethod": "POST", "parameters": {"projectId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "QueryRequest"}, "response": {"$ref": "QueryResponse"}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}}}', true)); + $this->projects = new Google_Service_Bigquery_Projects_Resource($this, $this->serviceName, 'projects', json_decode('{"methods": {"list": {"id": "bigquery.projects.list", "path": "projects", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "ProjectList"}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}}}', true)); + $this->tabledata = new Google_Service_Bigquery_Tabledata_Resource($this, $this->serviceName, 'tabledata', json_decode('{"methods": {"list": {"id": "bigquery.tabledata.list", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data", "httpMethod": "GET", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projectId": {"type": "string", "required": true, "location": "path"}, "startIndex": {"type": "string", "format": "uint64", "location": "query"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "TableDataList"}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}}}', true)); + $this->tables = new Google_Service_Bigquery_Tables_Resource($this, $this->serviceName, 'tables', json_decode('{"methods": {"delete": {"id": "bigquery.tables.delete", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "httpMethod": "DELETE", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}, "get": {"id": "bigquery.tables.get", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "httpMethod": "GET", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Table"}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}, "insert": {"id": "bigquery.tables.insert", "path": "projects/{projectId}/datasets/{datasetId}/tables", "httpMethod": "POST", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}, "list": {"id": "bigquery.tables.list", "path": "projects/{projectId}/datasets/{datasetId}/tables", "httpMethod": "GET", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projectId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "TableList"}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}, "patch": {"id": "bigquery.tables.patch", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "httpMethod": "PATCH", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}, "update": {"id": "bigquery.tables.update", "path": "projects/{projectId}/datasets/{datasetId}/tables/{tableId}", "httpMethod": "PUT", "parameters": {"datasetId": {"type": "string", "required": true, "location": "path"}, "projectId": {"type": "string", "required": true, "location": "path"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "scopes": ["https://www.googleapis.com/auth/bigquery"]}}}', true)); + + } +} + + + /** + * The "datasets" collection of methods. + * Typical usage is: + *
+ * $bigqueryService = new Google_BigqueryService(...);
+ * $datasets = $bigqueryService->datasets;
+ *
+ */
+ class Google_Service_Bigquery_Datasets_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Deletes the dataset specified by 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Bigquery_Dataset($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Bigquery_Dataset($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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.list)
+ *
+ * @param string $projectId Project ID of the datasets to be listed
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults The 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_DatasetList
+ */
+ public function listDatasets($projectId, $optParams = array()) {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Bigquery_DatasetList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Updates information in an existing dataset, specified by datasetId. Properties not included in
+ * the submitted resource will not be changed. If you include the access property without any values
+ * assigned, the request will fail as you must specify at least one owner for a dataset. 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Bigquery_Dataset($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Updates information in an existing dataset, specified by datasetId. Properties not included in
+ * the submitted resource will not be changed. If you include the access property without any values
+ * assigned, the request will fail as you must specify at least one owner for a dataset.
+ * (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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Bigquery_Dataset($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "jobs" collection of methods.
+ * Typical usage is:
+ *
+ * $bigqueryService = new Google_BigqueryService(...);
+ * $jobs = $bigqueryService->jobs;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Bigquery_Job($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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 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
+ * @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
+ * @return Google_Service_Bigquery_GetQueryResultsResponse
+ */
+ public function getQueryResults($projectId, $jobId, $optParams = array()) {
+ $params = array('projectId' => $projectId, 'jobId' => $jobId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('getQueryResults', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Bigquery_GetQueryResultsResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Starts a new asynchronous job. (jobs.insert)
+ *
+ * @param string $projectId Project ID of the project that will be billed for the job
+ * @param Google_Job $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Bigquery_Job($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Lists all the Jobs in the specified project that were started by the user. (jobs.list)
+ *
+ * @param string $projectId Project ID of the jobs to list
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool allUsers Whether to display jobs owned by all users in the project. Default false
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
+ * @opt_param string projection Restrict information returned to a set of selected fields
+ * @opt_param string stateFilter Filter for job state
+ * @return Google_Service_Bigquery_JobList
+ */
+ public function listJobs($projectId, $optParams = array()) {
+ $params = array('projectId' => $projectId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Bigquery_JobList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Runs a BigQuery SQL query synchronously and returns query results if the query completes within a
+ * specified timeout. (jobs.query)
+ *
+ * @param string $projectId Project ID of the project billed for the query
+ * @param Google_QueryRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('query', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Bigquery_QueryResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ *
+ * $bigqueryService = new Google_BigqueryService(...);
+ * $projects = $bigqueryService->projects;
+ *
+ */
+ class Google_Service_Bigquery_Projects_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Lists the projects to which you have at least read access. (projects.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
+ * @return Google_Service_Bigquery_ProjectList
+ */
+ public function listProjects($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Bigquery_ProjectList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "tabledata" collection of methods.
+ * Typical usage is:
+ *
+ * $bigqueryService = new Google_BigqueryService(...);
+ * $tabledata = $bigqueryService->tabledata;
+ *
+ */
+ class Google_Service_Bigquery_Tabledata_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Retrieves table data from a specified set of rows. (tabledata.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Bigquery_TableDataList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "tables" collection of methods.
+ * Typical usage is:
+ *
+ * $bigqueryService = new Google_BigqueryService(...);
+ * $tables = $bigqueryService->tables;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Bigquery_Table($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Bigquery_Table($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Lists all tables in the specified dataset. (tables.list)
+ *
+ * @param string $projectId Project ID of the tables to list
+ * @param string $datasetId Dataset ID of the tables to list
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string pageToken Page token, returned by a previous call, to request the next page of results
+ * @return Google_Service_Bigquery_TableList
+ */
+ public function listTables($projectId, $datasetId, $optParams = array()) {
+ $params = array('projectId' => $projectId, 'datasetId' => $datasetId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Bigquery_TableList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Updates information in an existing table, specified by tableId. 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Bigquery_Table($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Updates information in an existing table, specified by tableId. (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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Bigquery_Table($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Bigquery_Dataset
+ extends Google_Collection {
+ protected $__accessType = 'Google_Service_Bigquery_DatasetAccess';
+ protected $__accessDataType = 'array';
+ public $access;
+ public $creationTime;
+ protected $__datasetReferenceType = 'Google_Service_Bigquery_DatasetReference';
+ protected $__datasetReferenceDataType = '';
+ public $datasetReference;
+ public $description;
+ public $etag;
+ public $friendlyName;
+ public $id;
+ public $kind;
+ public $lastModifiedTime;
+ public $selfLink;
+ public function setAccess($access) {
+ $this->access = $access;
+ }
+ public function getAccess() {
+ return $this->access;
+ }
+ public function setCreationTime($creationTime) {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime() {
+ return $this->creationTime;
+ }
+ public function setDatasetReference(Google_Service_Bigquery_DatasetReference$datasetReference) {
+ $this->datasetReference = $datasetReference;
+ }
+ public function getDatasetReference() {
+ return $this->datasetReference;
+ }
+ public function setDescription($description) {
+ $this->description = $description;
+ }
+ public function getDescription() {
+ return $this->description;
+ }
+ public function setEtag($etag) {
+ $this->etag = $etag;
+ }
+ public function getEtag() {
+ return $this->etag;
+ }
+ public function setFriendlyName($friendlyName) {
+ $this->friendlyName = $friendlyName;
+ }
+ public function getFriendlyName() {
+ return $this->friendlyName;
+ }
+ 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 setLastModifiedTime($lastModifiedTime) {
+ $this->lastModifiedTime = $lastModifiedTime;
+ }
+ public function getLastModifiedTime() {
+ return $this->lastModifiedTime;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $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;
+ public function setDomain($domain) {
+ $this->domain = $domain;
+ }
+ public function getDomain() {
+ return $this->domain;
+ }
+ public function setGroupByEmail($groupByEmail) {
+ $this->groupByEmail = $groupByEmail;
+ }
+ public function getGroupByEmail() {
+ return $this->groupByEmail;
+ }
+ public function setRole($role) {
+ $this->role = $role;
+ }
+ public function getRole() {
+ return $this->role;
+ }
+ public function setSpecialGroup($specialGroup) {
+ $this->specialGroup = $specialGroup;
+ }
+ public function getSpecialGroup() {
+ return $this->specialGroup;
+ }
+ public function setUserByEmail($userByEmail) {
+ $this->userByEmail = $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 $datasets;
+ public $etag;
+ public $kind;
+ public $nextPageToken;
+ public function setDatasets($datasets) {
+ $this->datasets = $datasets;
+ }
+ public function getDatasets() {
+ return $this->datasets;
+ }
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_Bigquery_DatasetListDatasets
+ extends Google_Model {
+ protected $__datasetReferenceType = 'Google_Service_Bigquery_DatasetReference';
+ protected $__datasetReferenceDataType = '';
+ public $datasetReference;
+ public $friendlyName;
+ public $id;
+ public $kind;
+ public function setDatasetReference(Google_Service_Bigquery_DatasetReference$datasetReference) {
+ $this->datasetReference = $datasetReference;
+ }
+ public function getDatasetReference() {
+ return $this->datasetReference;
+ }
+ public function setFriendlyName($friendlyName) {
+ $this->friendlyName = $friendlyName;
+ }
+ public function getFriendlyName() {
+ return $this->friendlyName;
+ }
+ 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_Bigquery_DatasetReference
+ extends Google_Model {
+ public $datasetId;
+ public $projectId;
+ public function setDatasetId($datasetId) {
+ $this->datasetId = $datasetId;
+ }
+ public function getDatasetId() {
+ return $this->datasetId;
+ }
+ public function setProjectId($projectId) {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId() {
+ return $this->projectId;
+ }
+}
+
+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 getDebugInfo() {
+ return $this->debugInfo;
+ }
+ 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;
+ }
+ public function setReason($reason) {
+ $this->reason = $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 $jobReference;
+ public $kind;
+ public $pageToken;
+ protected $__rowsType = 'Google_Service_Bigquery_TableRow';
+ protected $__rowsDataType = 'array';
+ public $rows;
+ protected $__schemaType = 'Google_Service_Bigquery_TableSchema';
+ protected $__schemaDataType = '';
+ public $schema;
+ public $totalRows;
+ public function setCacheHit($cacheHit) {
+ $this->cacheHit = $cacheHit;
+ }
+ public function getCacheHit() {
+ return $this->cacheHit;
+ }
+ public function setEtag($etag) {
+ $this->etag = $etag;
+ }
+ public function getEtag() {
+ return $this->etag;
+ }
+ public function setJobComplete($jobComplete) {
+ $this->jobComplete = $jobComplete;
+ }
+ public function getJobComplete() {
+ return $this->jobComplete;
+ }
+ public function setJobReference(Google_Service_Bigquery_JobReference$jobReference) {
+ $this->jobReference = $jobReference;
+ }
+ public function getJobReference() {
+ return $this->jobReference;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setPageToken($pageToken) {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken() {
+ return $this->pageToken;
+ }
+ public function setRows($rows) {
+ $this->rows = $rows;
+ }
+ public function getRows() {
+ return $this->rows;
+ }
+ public function setSchema(Google_Service_Bigquery_TableSchema$schema) {
+ $this->schema = $schema;
+ }
+ public function getSchema() {
+ return $this->schema;
+ }
+ public function setTotalRows($totalRows) {
+ $this->totalRows = $totalRows;
+ }
+ public function getTotalRows() {
+ return $this->totalRows;
+ }
+}
+
+class Google_Service_Bigquery_Job
+ extends Google_Model {
+ protected $__configurationType = 'Google_Service_Bigquery_JobConfiguration';
+ protected $__configurationDataType = '';
+ public $configuration;
+ public $etag;
+ public $id;
+ protected $__jobReferenceType = 'Google_Service_Bigquery_JobReference';
+ protected $__jobReferenceDataType = '';
+ public $jobReference;
+ public $kind;
+ public $selfLink;
+ protected $__statisticsType = 'Google_Service_Bigquery_JobStatistics';
+ protected $__statisticsDataType = '';
+ public $statistics;
+ protected $__statusType = 'Google_Service_Bigquery_JobStatus';
+ protected $__statusDataType = '';
+ public $status;
+ public function setConfiguration(Google_Service_Bigquery_JobConfiguration$configuration) {
+ $this->configuration = $configuration;
+ }
+ public function getConfiguration() {
+ return $this->configuration;
+ }
+ 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 setJobReference(Google_Service_Bigquery_JobReference$jobReference) {
+ $this->jobReference = $jobReference;
+ }
+ public function getJobReference() {
+ return $this->jobReference;
+ }
+ 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 setStatistics(Google_Service_Bigquery_JobStatistics$statistics) {
+ $this->statistics = $statistics;
+ }
+ public function getStatistics() {
+ return $this->statistics;
+ }
+ public function setStatus(Google_Service_Bigquery_JobStatus$status) {
+ $this->status = $status;
+ }
+ public function getStatus() {
+ return $this->status;
+ }
+}
+
+class Google_Service_Bigquery_JobConfiguration
+ extends Google_Model {
+ protected $__copyType = 'Google_Service_Bigquery_JobConfigurationTableCopy';
+ protected $__copyDataType = '';
+ public $copy;
+ public $dryRun;
+ protected $__extractType = 'Google_Service_Bigquery_JobConfigurationExtract';
+ protected $__extractDataType = '';
+ public $extract;
+ protected $__linkType = 'Google_Service_Bigquery_JobConfigurationLink';
+ protected $__linkDataType = '';
+ public $link;
+ protected $__loadType = 'Google_Service_Bigquery_JobConfigurationLoad';
+ protected $__loadDataType = '';
+ public $load;
+ protected $__queryType = 'Google_Service_Bigquery_JobConfigurationQuery';
+ protected $__queryDataType = '';
+ public $query;
+ public function setCopy(Google_Service_Bigquery_JobConfigurationTableCopy$copy) {
+ $this->copy = $copy;
+ }
+ public function getCopy() {
+ return $this->copy;
+ }
+ public function setDryRun($dryRun) {
+ $this->dryRun = $dryRun;
+ }
+ public function getDryRun() {
+ return $this->dryRun;
+ }
+ public function setExtract(Google_Service_Bigquery_JobConfigurationExtract$extract) {
+ $this->extract = $extract;
+ }
+ public function getExtract() {
+ return $this->extract;
+ }
+ public function setLink(Google_Service_Bigquery_JobConfigurationLink$link) {
+ $this->link = $link;
+ }
+ public function getLink() {
+ return $this->link;
+ }
+ public function setLoad(Google_Service_Bigquery_JobConfigurationLoad$load) {
+ $this->load = $load;
+ }
+ public function getLoad() {
+ return $this->load;
+ }
+ public function setQuery(Google_Service_Bigquery_JobConfigurationQuery$query) {
+ $this->query = $query;
+ }
+ public function getQuery() {
+ return $this->query;
+ }
+}
+
+class Google_Service_Bigquery_JobConfigurationExtract
+ extends Google_Model {
+ public $destinationFormat;
+ public $destinationUri;
+ public $fieldDelimiter;
+ public $printHeader;
+ protected $__sourceTableType = 'Google_Service_Bigquery_TableReference';
+ protected $__sourceTableDataType = '';
+ public $sourceTable;
+ public function setDestinationFormat($destinationFormat) {
+ $this->destinationFormat = $destinationFormat;
+ }
+ public function getDestinationFormat() {
+ return $this->destinationFormat;
+ }
+ public function setDestinationUri($destinationUri) {
+ $this->destinationUri = $destinationUri;
+ }
+ public function getDestinationUri() {
+ return $this->destinationUri;
+ }
+ public function setFieldDelimiter($fieldDelimiter) {
+ $this->fieldDelimiter = $fieldDelimiter;
+ }
+ public function getFieldDelimiter() {
+ return $this->fieldDelimiter;
+ }
+ public function setPrintHeader($printHeader) {
+ $this->printHeader = $printHeader;
+ }
+ public function getPrintHeader() {
+ return $this->printHeader;
+ }
+ public function setSourceTable(Google_Service_Bigquery_TableReference$sourceTable) {
+ $this->sourceTable = $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 $destinationTable;
+ public $sourceUri;
+ public $writeDisposition;
+ public function setCreateDisposition($createDisposition) {
+ $this->createDisposition = $createDisposition;
+ }
+ public function getCreateDisposition() {
+ return $this->createDisposition;
+ }
+ public function setDestinationTable(Google_Service_Bigquery_TableReference$destinationTable) {
+ $this->destinationTable = $destinationTable;
+ }
+ public function getDestinationTable() {
+ return $this->destinationTable;
+ }
+ public function setSourceUri($sourceUri) {
+ $this->sourceUri = $sourceUri;
+ }
+ public function getSourceUri() {
+ return $this->sourceUri;
+ }
+ public function setWriteDisposition($writeDisposition) {
+ $this->writeDisposition = $writeDisposition;
+ }
+ public function getWriteDisposition() {
+ return $this->writeDisposition;
+ }
+}
+
+class Google_Service_Bigquery_JobConfigurationLoad
+ extends Google_Collection {
+ public $allowQuotedNewlines;
+ public $createDisposition;
+ protected $__destinationTableType = 'Google_Service_Bigquery_TableReference';
+ protected $__destinationTableDataType = '';
+ public $destinationTable;
+ public $encoding;
+ public $fieldDelimiter;
+ public $maxBadRecords;
+ public $quote;
+ protected $__schemaType = 'Google_Service_Bigquery_TableSchema';
+ protected $__schemaDataType = '';
+ public $schema;
+ public $schemaInline;
+ public $schemaInlineFormat;
+ public $skipLeadingRows;
+ public $sourceFormat;
+ public $sourceUris;
+ public $writeDisposition;
+ public function setAllowQuotedNewlines($allowQuotedNewlines) {
+ $this->allowQuotedNewlines = $allowQuotedNewlines;
+ }
+ public function getAllowQuotedNewlines() {
+ return $this->allowQuotedNewlines;
+ }
+ public function setCreateDisposition($createDisposition) {
+ $this->createDisposition = $createDisposition;
+ }
+ public function getCreateDisposition() {
+ return $this->createDisposition;
+ }
+ public function setDestinationTable(Google_Service_Bigquery_TableReference$destinationTable) {
+ $this->destinationTable = $destinationTable;
+ }
+ public function getDestinationTable() {
+ return $this->destinationTable;
+ }
+ public function setEncoding($encoding) {
+ $this->encoding = $encoding;
+ }
+ public function getEncoding() {
+ return $this->encoding;
+ }
+ public function setFieldDelimiter($fieldDelimiter) {
+ $this->fieldDelimiter = $fieldDelimiter;
+ }
+ public function getFieldDelimiter() {
+ return $this->fieldDelimiter;
+ }
+ public function setMaxBadRecords($maxBadRecords) {
+ $this->maxBadRecords = $maxBadRecords;
+ }
+ public function getMaxBadRecords() {
+ return $this->maxBadRecords;
+ }
+ public function setQuote($quote) {
+ $this->quote = $quote;
+ }
+ public function getQuote() {
+ return $this->quote;
+ }
+ public function setSchema(Google_Service_Bigquery_TableSchema$schema) {
+ $this->schema = $schema;
+ }
+ public function getSchema() {
+ return $this->schema;
+ }
+ public function setSchemaInline($schemaInline) {
+ $this->schemaInline = $schemaInline;
+ }
+ public function getSchemaInline() {
+ return $this->schemaInline;
+ }
+ public function setSchemaInlineFormat($schemaInlineFormat) {
+ $this->schemaInlineFormat = $schemaInlineFormat;
+ }
+ public function getSchemaInlineFormat() {
+ return $this->schemaInlineFormat;
+ }
+ public function setSkipLeadingRows($skipLeadingRows) {
+ $this->skipLeadingRows = $skipLeadingRows;
+ }
+ public function getSkipLeadingRows() {
+ return $this->skipLeadingRows;
+ }
+ public function setSourceFormat($sourceFormat) {
+ $this->sourceFormat = $sourceFormat;
+ }
+ public function getSourceFormat() {
+ return $this->sourceFormat;
+ }
+ public function setSourceUris($sourceUris) {
+ $this->sourceUris = $sourceUris;
+ }
+ public function getSourceUris() {
+ return $this->sourceUris;
+ }
+ public function setWriteDisposition($writeDisposition) {
+ $this->writeDisposition = $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 = '';
+ public $defaultDataset;
+ protected $__destinationTableType = 'Google_Service_Bigquery_TableReference';
+ protected $__destinationTableDataType = '';
+ public $destinationTable;
+ public $preserveNulls;
+ public $priority;
+ public $query;
+ public $useQueryCache;
+ public $writeDisposition;
+ public function setAllowLargeResults($allowLargeResults) {
+ $this->allowLargeResults = $allowLargeResults;
+ }
+ public function getAllowLargeResults() {
+ return $this->allowLargeResults;
+ }
+ public function setCreateDisposition($createDisposition) {
+ $this->createDisposition = $createDisposition;
+ }
+ public function getCreateDisposition() {
+ return $this->createDisposition;
+ }
+ public function setDefaultDataset(Google_Service_Bigquery_DatasetReference$defaultDataset) {
+ $this->defaultDataset = $defaultDataset;
+ }
+ public function getDefaultDataset() {
+ return $this->defaultDataset;
+ }
+ public function setDestinationTable(Google_Service_Bigquery_TableReference$destinationTable) {
+ $this->destinationTable = $destinationTable;
+ }
+ public function getDestinationTable() {
+ return $this->destinationTable;
+ }
+ public function setPreserveNulls($preserveNulls) {
+ $this->preserveNulls = $preserveNulls;
+ }
+ public function getPreserveNulls() {
+ return $this->preserveNulls;
+ }
+ public function setPriority($priority) {
+ $this->priority = $priority;
+ }
+ public function getPriority() {
+ return $this->priority;
+ }
+ public function setQuery($query) {
+ $this->query = $query;
+ }
+ public function getQuery() {
+ return $this->query;
+ }
+ public function setUseQueryCache($useQueryCache) {
+ $this->useQueryCache = $useQueryCache;
+ }
+ public function getUseQueryCache() {
+ return $this->useQueryCache;
+ }
+ public function setWriteDisposition($writeDisposition) {
+ $this->writeDisposition = $writeDisposition;
+ }
+ public function getWriteDisposition() {
+ return $this->writeDisposition;
+ }
+}
+
+class Google_Service_Bigquery_JobConfigurationTableCopy
+ extends Google_Model {
+ public $createDisposition;
+ protected $__destinationTableType = 'Google_Service_Bigquery_TableReference';
+ protected $__destinationTableDataType = '';
+ public $destinationTable;
+ protected $__sourceTableType = 'Google_Service_Bigquery_TableReference';
+ protected $__sourceTableDataType = '';
+ public $sourceTable;
+ public $writeDisposition;
+ public function setCreateDisposition($createDisposition) {
+ $this->createDisposition = $createDisposition;
+ }
+ public function getCreateDisposition() {
+ return $this->createDisposition;
+ }
+ public function setDestinationTable(Google_Service_Bigquery_TableReference$destinationTable) {
+ $this->destinationTable = $destinationTable;
+ }
+ public function getDestinationTable() {
+ return $this->destinationTable;
+ }
+ public function setSourceTable(Google_Service_Bigquery_TableReference$sourceTable) {
+ $this->sourceTable = $sourceTable;
+ }
+ public function getSourceTable() {
+ return $this->sourceTable;
+ }
+ public function setWriteDisposition($writeDisposition) {
+ $this->writeDisposition = $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 $jobs;
+ public $kind;
+ public $nextPageToken;
+ public $totalItems;
+ public function setEtag($etag) {
+ $this->etag = $etag;
+ }
+ public function getEtag() {
+ return $this->etag;
+ }
+ public function setJobs($jobs) {
+ $this->jobs = $jobs;
+ }
+ public function getJobs() {
+ return $this->jobs;
+ }
+ 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_Bigquery_JobListJobs
+ extends Google_Model {
+ protected $__configurationType = 'Google_Service_Bigquery_JobConfiguration';
+ protected $__configurationDataType = '';
+ public $configuration;
+ protected $__errorResultType = 'Google_Service_Bigquery_ErrorProto';
+ protected $__errorResultDataType = '';
+ public $errorResult;
+ public $id;
+ protected $__jobReferenceType = 'Google_Service_Bigquery_JobReference';
+ protected $__jobReferenceDataType = '';
+ public $jobReference;
+ public $kind;
+ public $state;
+ protected $__statisticsType = 'Google_Service_Bigquery_JobStatistics';
+ protected $__statisticsDataType = '';
+ public $statistics;
+ protected $__statusType = 'Google_Service_Bigquery_JobStatus';
+ protected $__statusDataType = '';
+ public $status;
+ public function setConfiguration(Google_Service_Bigquery_JobConfiguration$configuration) {
+ $this->configuration = $configuration;
+ }
+ public function getConfiguration() {
+ return $this->configuration;
+ }
+ public function setErrorResult(Google_Service_Bigquery_ErrorProto$errorResult) {
+ $this->errorResult = $errorResult;
+ }
+ public function getErrorResult() {
+ return $this->errorResult;
+ }
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setJobReference(Google_Service_Bigquery_JobReference$jobReference) {
+ $this->jobReference = $jobReference;
+ }
+ public function getJobReference() {
+ return $this->jobReference;
+ }
+ 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;
+ }
+ public function setStatistics(Google_Service_Bigquery_JobStatistics$statistics) {
+ $this->statistics = $statistics;
+ }
+ public function getStatistics() {
+ return $this->statistics;
+ }
+ public function setStatus(Google_Service_Bigquery_JobStatus$status) {
+ $this->status = $status;
+ }
+ public function getStatus() {
+ return $this->status;
+ }
+}
+
+class Google_Service_Bigquery_JobReference
+ extends Google_Model {
+ public $jobId;
+ public $projectId;
+ public function setJobId($jobId) {
+ $this->jobId = $jobId;
+ }
+ public function getJobId() {
+ return $this->jobId;
+ }
+ public function setProjectId($projectId) {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId() {
+ return $this->projectId;
+ }
+}
+
+class Google_Service_Bigquery_JobStatistics
+ extends Google_Model {
+ public $endTime;
+ protected $__loadType = 'Google_Service_Bigquery_JobStatistics3';
+ protected $__loadDataType = '';
+ public $load;
+ protected $__queryType = 'Google_Service_Bigquery_JobStatistics2';
+ protected $__queryDataType = '';
+ public $query;
+ public $startTime;
+ public $totalBytesProcessed;
+ public function setEndTime($endTime) {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime() {
+ return $this->endTime;
+ }
+ public function setLoad(Google_Service_Bigquery_JobStatistics3$load) {
+ $this->load = $load;
+ }
+ public function getLoad() {
+ return $this->load;
+ }
+ public function setQuery(Google_Service_Bigquery_JobStatistics2$query) {
+ $this->query = $query;
+ }
+ public function getQuery() {
+ return $this->query;
+ }
+ public function setStartTime($startTime) {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime() {
+ return $this->startTime;
+ }
+ public function setTotalBytesProcessed($totalBytesProcessed) {
+ $this->totalBytesProcessed = $totalBytesProcessed;
+ }
+ public function getTotalBytesProcessed() {
+ return $this->totalBytesProcessed;
+ }
+}
+
+class Google_Service_Bigquery_JobStatistics2
+ extends Google_Model {
+ public $cacheHit;
+ public $totalBytesProcessed;
+ public function setCacheHit($cacheHit) {
+ $this->cacheHit = $cacheHit;
+ }
+ public function getCacheHit() {
+ return $this->cacheHit;
+ }
+ public function setTotalBytesProcessed($totalBytesProcessed) {
+ $this->totalBytesProcessed = $totalBytesProcessed;
+ }
+ public function getTotalBytesProcessed() {
+ return $this->totalBytesProcessed;
+ }
+}
+
+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 getInputFileBytes() {
+ return $this->inputFileBytes;
+ }
+ public function setInputFiles($inputFiles) {
+ $this->inputFiles = $inputFiles;
+ }
+ public function getInputFiles() {
+ return $this->inputFiles;
+ }
+ public function setOutputBytes($outputBytes) {
+ $this->outputBytes = $outputBytes;
+ }
+ public function getOutputBytes() {
+ return $this->outputBytes;
+ }
+ public function setOutputRows($outputRows) {
+ $this->outputRows = $outputRows;
+ }
+ public function getOutputRows() {
+ return $this->outputRows;
+ }
+}
+
+class Google_Service_Bigquery_JobStatus
+ extends Google_Collection {
+ protected $__errorResultType = 'Google_Service_Bigquery_ErrorProto';
+ protected $__errorResultDataType = '';
+ public $errorResult;
+ protected $__errorsType = 'Google_Service_Bigquery_ErrorProto';
+ protected $__errorsDataType = 'array';
+ public $errors;
+ public $state;
+ public function setErrorResult(Google_Service_Bigquery_ErrorProto$errorResult) {
+ $this->errorResult = $errorResult;
+ }
+ public function getErrorResult() {
+ return $this->errorResult;
+ }
+ public function setErrors($errors) {
+ $this->errors = $errors;
+ }
+ public function getErrors() {
+ return $this->errors;
+ }
+ public function setState($state) {
+ $this->state = $state;
+ }
+ public function getState() {
+ return $this->state;
+ }
+}
+
+class Google_Service_Bigquery_ProjectList
+ extends Google_Collection {
+ public $etag;
+ public $kind;
+ public $nextPageToken;
+ protected $__projectsType = 'Google_Service_Bigquery_ProjectListProjects';
+ protected $__projectsDataType = 'array';
+ public $projects;
+ public $totalItems;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+ public function setProjects($projects) {
+ $this->projects = $projects;
+ }
+ public function getProjects() {
+ return $this->projects;
+ }
+ public function setTotalItems($totalItems) {
+ $this->totalItems = $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 = '';
+ public $projectReference;
+ public function setFriendlyName($friendlyName) {
+ $this->friendlyName = $friendlyName;
+ }
+ public function getFriendlyName() {
+ return $this->friendlyName;
+ }
+ 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 setNumericId($numericId) {
+ $this->numericId = $numericId;
+ }
+ public function getNumericId() {
+ return $this->numericId;
+ }
+ public function setProjectReference(Google_Service_Bigquery_ProjectReference$projectReference) {
+ $this->projectReference = $projectReference;
+ }
+ public function getProjectReference() {
+ return $this->projectReference;
+ }
+}
+
+class Google_Service_Bigquery_ProjectReference
+ extends Google_Model {
+ public $projectId;
+ public function setProjectId($projectId) {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId() {
+ return $this->projectId;
+ }
+}
+
+class Google_Service_Bigquery_QueryRequest
+ extends Google_Model {
+ protected $__defaultDatasetType = 'Google_Service_Bigquery_DatasetReference';
+ protected $__defaultDatasetDataType = '';
+ public $defaultDataset;
+ 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 getDefaultDataset() {
+ return $this->defaultDataset;
+ }
+ public function setDryRun($dryRun) {
+ $this->dryRun = $dryRun;
+ }
+ public function getDryRun() {
+ return $this->dryRun;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setMaxResults($maxResults) {
+ $this->maxResults = $maxResults;
+ }
+ public function getMaxResults() {
+ return $this->maxResults;
+ }
+ public function setPreserveNulls($preserveNulls) {
+ $this->preserveNulls = $preserveNulls;
+ }
+ public function getPreserveNulls() {
+ return $this->preserveNulls;
+ }
+ public function setQuery($query) {
+ $this->query = $query;
+ }
+ public function getQuery() {
+ return $this->query;
+ }
+ public function setTimeoutMs($timeoutMs) {
+ $this->timeoutMs = $timeoutMs;
+ }
+ public function getTimeoutMs() {
+ return $this->timeoutMs;
+ }
+ public function setUseQueryCache($useQueryCache) {
+ $this->useQueryCache = $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 $jobReference;
+ public $kind;
+ public $pageToken;
+ protected $__rowsType = 'Google_Service_Bigquery_TableRow';
+ protected $__rowsDataType = 'array';
+ public $rows;
+ protected $__schemaType = 'Google_Service_Bigquery_TableSchema';
+ protected $__schemaDataType = '';
+ public $schema;
+ public $totalBytesProcessed;
+ public $totalRows;
+ public function setCacheHit($cacheHit) {
+ $this->cacheHit = $cacheHit;
+ }
+ public function getCacheHit() {
+ return $this->cacheHit;
+ }
+ public function setJobComplete($jobComplete) {
+ $this->jobComplete = $jobComplete;
+ }
+ public function getJobComplete() {
+ return $this->jobComplete;
+ }
+ public function setJobReference(Google_Service_Bigquery_JobReference$jobReference) {
+ $this->jobReference = $jobReference;
+ }
+ public function getJobReference() {
+ return $this->jobReference;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setPageToken($pageToken) {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken() {
+ return $this->pageToken;
+ }
+ public function setRows($rows) {
+ $this->rows = $rows;
+ }
+ public function getRows() {
+ return $this->rows;
+ }
+ public function setSchema(Google_Service_Bigquery_TableSchema$schema) {
+ $this->schema = $schema;
+ }
+ public function getSchema() {
+ return $this->schema;
+ }
+ public function setTotalBytesProcessed($totalBytesProcessed) {
+ $this->totalBytesProcessed = $totalBytesProcessed;
+ }
+ public function getTotalBytesProcessed() {
+ return $this->totalBytesProcessed;
+ }
+ public function setTotalRows($totalRows) {
+ $this->totalRows = $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 $schema;
+ public $selfLink;
+ protected $__tableReferenceType = 'Google_Service_Bigquery_TableReference';
+ protected $__tableReferenceDataType = '';
+ public $tableReference;
+ public function setCreationTime($creationTime) {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime() {
+ return $this->creationTime;
+ }
+ public function setDescription($description) {
+ $this->description = $description;
+ }
+ public function getDescription() {
+ return $this->description;
+ }
+ public function setEtag($etag) {
+ $this->etag = $etag;
+ }
+ public function getEtag() {
+ return $this->etag;
+ }
+ public function setExpirationTime($expirationTime) {
+ $this->expirationTime = $expirationTime;
+ }
+ public function getExpirationTime() {
+ return $this->expirationTime;
+ }
+ public function setFriendlyName($friendlyName) {
+ $this->friendlyName = $friendlyName;
+ }
+ public function getFriendlyName() {
+ return $this->friendlyName;
+ }
+ 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 setLastModifiedTime($lastModifiedTime) {
+ $this->lastModifiedTime = $lastModifiedTime;
+ }
+ public function getLastModifiedTime() {
+ return $this->lastModifiedTime;
+ }
+ public function setNumBytes($numBytes) {
+ $this->numBytes = $numBytes;
+ }
+ public function getNumBytes() {
+ return $this->numBytes;
+ }
+ public function setNumRows($numRows) {
+ $this->numRows = $numRows;
+ }
+ public function getNumRows() {
+ return $this->numRows;
+ }
+ public function setSchema(Google_Service_Bigquery_TableSchema$schema) {
+ $this->schema = $schema;
+ }
+ public function getSchema() {
+ return $this->schema;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+ public function setTableReference(Google_Service_Bigquery_TableReference$tableReference) {
+ $this->tableReference = $tableReference;
+ }
+ public function getTableReference() {
+ return $this->tableReference;
+ }
+}
+
+class Google_Service_Bigquery_TableCell
+ extends Google_Model {
+ public $v;
+ public function setV($v) {
+ $this->v = $v;
+ }
+ public function getV() {
+ return $this->v;
+ }
+}
+
+class Google_Service_Bigquery_TableDataList
+ extends Google_Collection {
+ public $etag;
+ public $kind;
+ public $pageToken;
+ protected $__rowsType = 'Google_Service_Bigquery_TableRow';
+ protected $__rowsDataType = 'array';
+ public $rows;
+ public $totalRows;
+ 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 setPageToken($pageToken) {
+ $this->pageToken = $pageToken;
+ }
+ public function getPageToken() {
+ return $this->pageToken;
+ }
+ public function setRows($rows) {
+ $this->rows = $rows;
+ }
+ public function getRows() {
+ return $this->rows;
+ }
+ public function setTotalRows($totalRows) {
+ $this->totalRows = $totalRows;
+ }
+ public function getTotalRows() {
+ return $this->totalRows;
+ }
+}
+
+class Google_Service_Bigquery_TableFieldSchema
+ extends Google_Collection {
+ protected $__fieldsType = 'Google_Service_Bigquery_TableFieldSchema';
+ protected $__fieldsDataType = 'array';
+ public $fields;
+ public $mode;
+ public $name;
+ public $type;
+ public function setFields($fields) {
+ $this->fields = $fields;
+ }
+ public function getFields() {
+ return $this->fields;
+ }
+ public function setMode($mode) {
+ $this->mode = $mode;
+ }
+ public function getMode() {
+ return $this->mode;
+ }
+ 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_Bigquery_TableList
+ extends Google_Collection {
+ public $etag;
+ public $kind;
+ public $nextPageToken;
+ protected $__tablesType = 'Google_Service_Bigquery_TableListTables';
+ protected $__tablesDataType = 'array';
+ public $tables;
+ public $totalItems;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+ public function setTables($tables) {
+ $this->tables = $tables;
+ }
+ public function getTables() {
+ return $this->tables;
+ }
+ public function setTotalItems($totalItems) {
+ $this->totalItems = $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 $tableReference;
+ public function setFriendlyName($friendlyName) {
+ $this->friendlyName = $friendlyName;
+ }
+ public function getFriendlyName() {
+ return $this->friendlyName;
+ }
+ 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 setTableReference(Google_Service_Bigquery_TableReference$tableReference) {
+ $this->tableReference = $tableReference;
+ }
+ public function getTableReference() {
+ return $this->tableReference;
+ }
+}
+
+class Google_Service_Bigquery_TableReference
+ extends Google_Model {
+ public $datasetId;
+ public $projectId;
+ public $tableId;
+ public function setDatasetId($datasetId) {
+ $this->datasetId = $datasetId;
+ }
+ public function getDatasetId() {
+ return $this->datasetId;
+ }
+ public function setProjectId($projectId) {
+ $this->projectId = $projectId;
+ }
+ public function getProjectId() {
+ return $this->projectId;
+ }
+ public function setTableId($tableId) {
+ $this->tableId = $tableId;
+ }
+ public function getTableId() {
+ return $this->tableId;
+ }
+}
+
+class Google_Service_Bigquery_TableRow
+ extends Google_Collection {
+ protected $__fType = 'Google_Service_Bigquery_TableCell';
+ protected $__fDataType = 'array';
+ public $f;
+ public function setF($f) {
+ $this->f = $f;
+ }
+ public function getF() {
+ return $this->f;
+ }
+}
+
+class Google_Service_Bigquery_TableSchema
+ extends Google_Collection {
+ protected $__fieldsType = 'Google_Service_Bigquery_TableFieldSchema';
+ protected $__fieldsDataType = 'array';
+ public $fields;
+ public function setFields($fields) {
+ $this->fields = $fields;
+ }
+ public function getFields() {
+ return $this->fields;
+ }
+}
diff --git a/src/Google/Service/Blogger.php b/src/Google/Service/Blogger.php
new file mode 100644
index 0000000..0b3e7e9
--- /dev/null
+++ b/src/Google/Service/Blogger.php
@@ -0,0 +1,1322 @@
+
+ * API for access to the data within Blogger.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Blogger extends Google_Service { + public $blogs; + public $comments; + public $pages; + public $posts; + public $users; + /** + * Constructs the internal representation of the Blogger service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'blogger/v3/'; + $this->version = 'v3'; + $this->serviceName = 'blogger'; + + $client->addService($this->serviceName, $this->version); + $this->blogs = new Google_Service_Blogger_Blogs_Resource($this, $this->serviceName, 'blogs', json_decode('{"methods": {"get": {"id": "blogger.blogs.get", "path": "blogs/{blogId}", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "maxPosts": {"type": "integer", "format": "uint32", "location": "query"}}, "response": {"$ref": "Blog"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}, "getByUrl": {"id": "blogger.blogs.getByUrl", "path": "blogs/byurl", "httpMethod": "GET", "parameters": {"url": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "Blog"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}, "listByUser": {"id": "blogger.blogs.listByUser", "path": "users/{userId}/blogs", "httpMethod": "GET", "parameters": {"userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "BlogList"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}}}', true)); + $this->comments = new Google_Service_Blogger_Comments_Resource($this, $this->serviceName, 'comments', json_decode('{"methods": {"get": {"id": "blogger.comments.get", "path": "blogs/{blogId}/posts/{postId}/comments/{commentId}", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "commentId": {"type": "string", "required": true, "location": "path"}, "postId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Comment"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}, "list": {"id": "blogger.comments.list", "path": "blogs/{blogId}/posts/{postId}/comments", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "endDate": {"type": "string", "format": "date-time", "location": "query"}, "fetchBodies": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "postId": {"type": "string", "required": true, "location": "path"}, "startDate": {"type": "string", "format": "date-time", "location": "query"}}, "response": {"$ref": "CommentList"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}}}', true)); + $this->pages = new Google_Service_Blogger_Pages_Resource($this, $this->serviceName, 'pages', json_decode('{"methods": {"get": {"id": "blogger.pages.get", "path": "blogs/{blogId}/pages/{pageId}", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "pageId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Page"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}, "list": {"id": "blogger.pages.list", "path": "blogs/{blogId}/pages", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "fetchBodies": {"type": "boolean", "location": "query"}}, "response": {"$ref": "PageList"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}}}', true)); + $this->posts = new Google_Service_Blogger_Posts_Resource($this, $this->serviceName, 'posts', json_decode('{"methods": {"delete": {"id": "blogger.posts.delete", "path": "blogs/{blogId}/posts/{postId}", "httpMethod": "DELETE", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "postId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/blogger"]}, "get": {"id": "blogger.posts.get", "path": "blogs/{blogId}/posts/{postId}", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "maxComments": {"type": "integer", "format": "uint32", "location": "query"}, "postId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Post"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}, "getByPath": {"id": "blogger.posts.getByPath", "path": "blogs/{blogId}/posts/bypath", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "maxComments": {"type": "integer", "format": "uint32", "location": "query"}, "path": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "Post"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}, "insert": {"id": "blogger.posts.insert", "path": "blogs/{blogId}/posts", "httpMethod": "POST", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Post"}, "response": {"$ref": "Post"}, "scopes": ["https://www.googleapis.com/auth/blogger"]}, "list": {"id": "blogger.posts.list", "path": "blogs/{blogId}/posts", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "endDate": {"type": "string", "format": "date-time", "location": "query"}, "fetchBodies": {"type": "boolean", "location": "query"}, "labels": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "startDate": {"type": "string", "format": "date-time", "location": "query"}}, "response": {"$ref": "PostList"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}, "patch": {"id": "blogger.posts.patch", "path": "blogs/{blogId}/posts/{postId}", "httpMethod": "PATCH", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "postId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Post"}, "response": {"$ref": "Post"}, "scopes": ["https://www.googleapis.com/auth/blogger"]}, "search": {"id": "blogger.posts.search", "path": "blogs/{blogId}/posts/search", "httpMethod": "GET", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "q": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "PostList"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}, "update": {"id": "blogger.posts.update", "path": "blogs/{blogId}/posts/{postId}", "httpMethod": "PUT", "parameters": {"blogId": {"type": "string", "required": true, "location": "path"}, "postId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Post"}, "response": {"$ref": "Post"}, "scopes": ["https://www.googleapis.com/auth/blogger"]}}}', true)); + $this->users = new Google_Service_Blogger_Users_Resource($this, $this->serviceName, 'users', json_decode('{"methods": {"get": {"id": "blogger.users.get", "path": "users/{userId}", "httpMethod": "GET", "parameters": {"userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "User"}, "scopes": ["https://www.googleapis.com/auth/blogger", "https://www.googleapis.com/auth/blogger.readonly"]}}}', true)); + + } +} + + + /** + * The "blogs" collection of methods. + * Typical usage is: + *
+ * $bloggerService = new Google_BloggerService(...);
+ * $blogs = $bloggerService->blogs;
+ *
+ */
+ 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.
+ * @return Google_Service_Blogger_Blog
+ */
+ public function get($blogId, $optParams = array()) {
+ $params = array('blogId' => $blogId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Blogger_Blog($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieve a Blog by URL. (blogs.getByUrl)
+ *
+ * @param string $url The URL of the blog to retrieve.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Blogger_Blog
+ */
+ public function getByUrl($url, $optParams = array()) {
+ $params = array('url' => $url);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('getByUrl', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Blogger_Blog($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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.
+ * @return Google_Service_Blogger_BlogList
+ */
+ public function listByUser($userId, $optParams = array()) {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('listByUser', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Blogger_BlogList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "comments" collection of methods.
+ * Typical usage is:
+ *
+ * $bloggerService = new Google_BloggerService(...);
+ * $comments = $bloggerService->comments;
+ *
+ */
+ class Google_Service_Blogger_Comments_Resource extends Google_Service_Resource {
+
+
+ /**
+ * 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.
+ * @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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Blogger_Comment($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the comments for a blog, possibly filtered. (comments.list)
+ *
+ * @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 endDate Latest date of comment to fetch, a date-time with RFC 3339 formatting.
+ * @opt_param bool fetchBodies Whether the body content of the comments is included.
+ * @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 string startDate Earliest date of comment to fetch, a date-time with RFC 3339 formatting.
+ * @return Google_Service_Blogger_CommentList
+ */
+ public function listComments($blogId, $postId, $optParams = array()) {
+ $params = array('blogId' => $blogId, 'postId' => $postId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Blogger_CommentList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "pages" collection of methods.
+ * Typical usage is:
+ *
+ * $bloggerService = new Google_BloggerService(...);
+ * $pages = $bloggerService->pages;
+ *
+ */
+ class Google_Service_Blogger_Pages_Resource extends Google_Service_Resource {
+
+
+ /**
+ * 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.
+ * @return Google_Service_Blogger_Page
+ */
+ public function get($blogId, $pageId, $optParams = array()) {
+ $params = array('blogId' => $blogId, 'pageId' => $pageId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Blogger_Page($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves pages for a blog, possibly filtered. (pages.list)
+ *
+ * @param string $blogId ID of the blog to fetch pages from.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool fetchBodies Whether to retrieve the Page bodies.
+ * @return Google_Service_Blogger_PageList
+ */
+ public function listPages($blogId, $optParams = array()) {
+ $params = array('blogId' => $blogId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Blogger_PageList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "posts" collection of methods.
+ * Typical usage is:
+ *
+ * $bloggerService = new Google_BloggerService(...);
+ * $posts = $bloggerService->posts;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * Get a post by id. (posts.get)
+ *
+ * @param string $blogId ID of the blog to fetch the post from.
+ * @param string $postId The ID of the post
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxComments Maximum number of comments to pull back on a post.
+ * @return Google_Service_Blogger_Post
+ */
+ public function get($blogId, $postId, $optParams = array()) {
+ $params = array('blogId' => $blogId, 'postId' => $postId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Blogger_Post($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieve a Post by Path. (posts.getByPath)
+ *
+ * @param string $blogId ID of the blog to fetch the post from.
+ * @param string $path Path of the Post to retrieve.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxComments Maximum number of comments to pull back on a post.
+ * @return Google_Service_Blogger_Post
+ */
+ public function getByPath($blogId, $path, $optParams = array()) {
+ $params = array('blogId' => $blogId, 'path' => $path);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('getByPath', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Blogger_Post($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Add a post. (posts.insert)
+ *
+ * @param string $blogId ID of the blog to fetch the post from.
+ * @param Google_Post $postBody
+ * @param array $optParams Optional parameters.
+ * @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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Blogger_Post($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves a list of posts, possibly filtered. (posts.list)
+ *
+ * @param string $blogId ID of the blog to fetch posts from.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string endDate Latest post date to fetch, a date-time with RFC 3339 formatting.
+ * @opt_param bool fetchBodies Whether the body content of posts is included.
+ * @opt_param string labels Comma-separated list of labels to search for.
+ * @opt_param string maxResults Maximum number of posts to fetch.
+ * @opt_param string pageToken Continuation token if the request is paged.
+ * @opt_param string startDate Earliest post date to fetch, a date-time with RFC 3339 formatting.
+ * @return Google_Service_Blogger_PostList
+ */
+ public function listPosts($blogId, $optParams = array()) {
+ $params = array('blogId' => $blogId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Blogger_PostList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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.
+ * @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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Blogger_Post($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Search for a post. (posts.search)
+ *
+ * @param string $blogId ID of the blog to fetch the post from.
+ * @param string $q Query terms to search this blog for matching posts.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Blogger_PostList
+ */
+ public function search($blogId, $q, $optParams = array()) {
+ $params = array('blogId' => $blogId, 'q' => $q);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('search', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Blogger_PostList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Update a post. (posts.update)
+ *
+ * @param string $blogId The ID of the Blog.
+ * @param string $postId The ID of the Post.
+ * @param Google_Post $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Blogger_Post($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "users" collection of methods.
+ * Typical usage is:
+ *
+ * $bloggerService = new Google_BloggerService(...);
+ * $users = $bloggerService->users;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Blogger_User($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+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 $locale;
+ public $name;
+ protected $__pagesType = 'Google_Service_Blogger_BlogPages';
+ protected $__pagesDataType = '';
+ public $pages;
+ protected $__postsType = 'Google_Service_Blogger_BlogPosts';
+ protected $__postsDataType = '';
+ public $posts;
+ public $published;
+ public $selfLink;
+ public $updated;
+ public $url;
+ public function setCustomMetaData($customMetaData) {
+ $this->customMetaData = $customMetaData;
+ }
+ public function getCustomMetaData() {
+ return $this->customMetaData;
+ }
+ 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 setLocale(Google_Service_Blogger_BlogLocale$locale) {
+ $this->locale = $locale;
+ }
+ public function getLocale() {
+ return $this->locale;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setPages(Google_Service_Blogger_BlogPages$pages) {
+ $this->pages = $pages;
+ }
+ public function getPages() {
+ return $this->pages;
+ }
+ public function setPosts(Google_Service_Blogger_BlogPosts$posts) {
+ $this->posts = $posts;
+ }
+ public function getPosts() {
+ return $this->posts;
+ }
+ public function setPublished($published) {
+ $this->published = $published;
+ }
+ public function getPublished() {
+ return $this->published;
+ }
+ 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 setUrl($url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
+
+class Google_Service_Blogger_BlogList
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Blogger_Blog';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_Blogger_BlogLocale
+ extends Google_Model {
+ public $country;
+ public $language;
+ public $variant;
+ public function setCountry($country) {
+ $this->country = $country;
+ }
+ public function getCountry() {
+ return $this->country;
+ }
+ public function setLanguage($language) {
+ $this->language = $language;
+ }
+ public function getLanguage() {
+ return $this->language;
+ }
+ public function setVariant($variant) {
+ $this->variant = $variant;
+ }
+ public function getVariant() {
+ return $this->variant;
+ }
+}
+
+class Google_Service_Blogger_BlogPages
+ extends Google_Model {
+ public $selfLink;
+ public $totalItems;
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+ public function setTotalItems($totalItems) {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems() {
+ return $this->totalItems;
+ }
+}
+
+class Google_Service_Blogger_BlogPosts
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Blogger_Post';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $selfLink;
+ public $totalItems;
+ public function setItems($items) {
+ $this->items = $items;
+ }
+ public function getItems() {
+ return $this->items;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+ public function setTotalItems($totalItems) {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems() {
+ return $this->totalItems;
+ }
+}
+
+class Google_Service_Blogger_Comment
+ extends Google_Model {
+ protected $__authorType = 'Google_Service_Blogger_CommentAuthor';
+ protected $__authorDataType = '';
+ public $author;
+ protected $__blogType = 'Google_Service_Blogger_CommentBlog';
+ protected $__blogDataType = '';
+ public $blog;
+ public $content;
+ public $id;
+ protected $__inReplyToType = 'Google_Service_Blogger_CommentInReplyTo';
+ protected $__inReplyToDataType = '';
+ public $inReplyTo;
+ public $kind;
+ protected $__postType = 'Google_Service_Blogger_CommentPost';
+ protected $__postDataType = '';
+ public $post;
+ public $published;
+ public $selfLink;
+ public $updated;
+ public function setAuthor(Google_Service_Blogger_CommentAuthor$author) {
+ $this->author = $author;
+ }
+ public function getAuthor() {
+ return $this->author;
+ }
+ public function setBlog(Google_Service_Blogger_CommentBlog$blog) {
+ $this->blog = $blog;
+ }
+ public function getBlog() {
+ return $this->blog;
+ }
+ public function setContent($content) {
+ $this->content = $content;
+ }
+ public function getContent() {
+ return $this->content;
+ }
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setInReplyTo(Google_Service_Blogger_CommentInReplyTo$inReplyTo) {
+ $this->inReplyTo = $inReplyTo;
+ }
+ public function getInReplyTo() {
+ return $this->inReplyTo;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setPost(Google_Service_Blogger_CommentPost$post) {
+ $this->post = $post;
+ }
+ public function getPost() {
+ return $this->post;
+ }
+ public function setPublished($published) {
+ $this->published = $published;
+ }
+ public function getPublished() {
+ return $this->published;
+ }
+ 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_Blogger_CommentAuthor
+ extends Google_Model {
+ public $displayName;
+ public $id;
+ protected $__imageType = 'Google_Service_Blogger_CommentAuthorImage';
+ protected $__imageDataType = '';
+ public $image;
+ public $url;
+ 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 setImage(Google_Service_Blogger_CommentAuthorImage$image) {
+ $this->image = $image;
+ }
+ public function getImage() {
+ return $this->image;
+ }
+ public function setUrl($url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
+
+class Google_Service_Blogger_CommentAuthorImage
+ extends Google_Model {
+ public $url;
+ public function setUrl($url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
+
+class Google_Service_Blogger_CommentBlog
+ extends Google_Model {
+ public $id;
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+}
+
+class Google_Service_Blogger_CommentInReplyTo
+ extends Google_Model {
+ public $id;
+ public function setId($id) {
+ $this->id = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setPrevPageToken($prevPageToken) {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken() {
+ return $this->prevPageToken;
+ }
+}
+
+class Google_Service_Blogger_CommentPost
+ extends Google_Model {
+ public $id;
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+}
+
+class Google_Service_Blogger_Page
+ extends Google_Model {
+ protected $__authorType = 'Google_Service_Blogger_PageAuthor';
+ protected $__authorDataType = '';
+ public $author;
+ protected $__blogType = 'Google_Service_Blogger_PageBlog';
+ protected $__blogDataType = '';
+ public $blog;
+ public $content;
+ public $id;
+ public $kind;
+ public $published;
+ public $selfLink;
+ public $title;
+ public $updated;
+ public $url;
+ public function setAuthor(Google_Service_Blogger_PageAuthor$author) {
+ $this->author = $author;
+ }
+ public function getAuthor() {
+ return $this->author;
+ }
+ public function setBlog(Google_Service_Blogger_PageBlog$blog) {
+ $this->blog = $blog;
+ }
+ public function getBlog() {
+ return $this->blog;
+ }
+ public function setContent($content) {
+ $this->content = $content;
+ }
+ public function getContent() {
+ return $this->content;
+ }
+ 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 setPublished($published) {
+ $this->published = $published;
+ }
+ public function getPublished() {
+ return $this->published;
+ }
+ 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 setUrl($url) {
+ $this->url = $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 $image;
+ public $url;
+ 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 setImage(Google_Service_Blogger_PageAuthorImage$image) {
+ $this->image = $image;
+ }
+ public function getImage() {
+ return $this->image;
+ }
+ public function setUrl($url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
+
+class Google_Service_Blogger_PageAuthorImage
+ extends Google_Model {
+ public $url;
+ public function setUrl($url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
+
+class Google_Service_Blogger_PageBlog
+ extends Google_Model {
+ public $id;
+ public function setId($id) {
+ $this->id = $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 $items;
+ 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_Blogger_Post
+ extends Google_Collection {
+ protected $__authorType = 'Google_Service_Blogger_PostAuthor';
+ protected $__authorDataType = '';
+ public $author;
+ protected $__blogType = 'Google_Service_Blogger_PostBlog';
+ protected $__blogDataType = '';
+ public $blog;
+ public $content;
+ public $customMetaData;
+ public $id;
+ public $kind;
+ public $labels;
+ protected $__locationType = 'Google_Service_Blogger_PostLocation';
+ protected $__locationDataType = '';
+ public $location;
+ public $published;
+ protected $__repliesType = 'Google_Service_Blogger_PostReplies';
+ protected $__repliesDataType = '';
+ public $replies;
+ public $selfLink;
+ public $title;
+ public $updated;
+ public $url;
+ public function setAuthor(Google_Service_Blogger_PostAuthor$author) {
+ $this->author = $author;
+ }
+ public function getAuthor() {
+ return $this->author;
+ }
+ public function setBlog(Google_Service_Blogger_PostBlog$blog) {
+ $this->blog = $blog;
+ }
+ public function getBlog() {
+ return $this->blog;
+ }
+ public function setContent($content) {
+ $this->content = $content;
+ }
+ public function getContent() {
+ return $this->content;
+ }
+ public function setCustomMetaData($customMetaData) {
+ $this->customMetaData = $customMetaData;
+ }
+ public function getCustomMetaData() {
+ return $this->customMetaData;
+ }
+ 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 setLabels($labels) {
+ $this->labels = $labels;
+ }
+ public function getLabels() {
+ return $this->labels;
+ }
+ public function setLocation(Google_Service_Blogger_PostLocation$location) {
+ $this->location = $location;
+ }
+ public function getLocation() {
+ return $this->location;
+ }
+ public function setPublished($published) {
+ $this->published = $published;
+ }
+ public function getPublished() {
+ return $this->published;
+ }
+ public function setReplies(Google_Service_Blogger_PostReplies$replies) {
+ $this->replies = $replies;
+ }
+ public function getReplies() {
+ return $this->replies;
+ }
+ 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 setUrl($url) {
+ $this->url = $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 $image;
+ public $url;
+ 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 setImage(Google_Service_Blogger_PostAuthorImage$image) {
+ $this->image = $image;
+ }
+ public function getImage() {
+ return $this->image;
+ }
+ public function setUrl($url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
+
+class Google_Service_Blogger_PostAuthorImage
+ extends Google_Model {
+ public $url;
+ public function setUrl($url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
+
+class Google_Service_Blogger_PostBlog
+ extends Google_Model {
+ public $id;
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+}
+
+class Google_Service_Blogger_PostList
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Blogger_Post';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setPrevPageToken($prevPageToken) {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken() {
+ return $this->prevPageToken;
+ }
+}
+
+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 getLat() {
+ return $this->lat;
+ }
+ public function setLng($lng) {
+ $this->lng = $lng;
+ }
+ public function getLng() {
+ return $this->lng;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setSpan($span) {
+ $this->span = $span;
+ }
+ public function getSpan() {
+ return $this->span;
+ }
+}
+
+class Google_Service_Blogger_PostReplies
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Blogger_Comment';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $selfLink;
+ public $totalItems;
+ public function setItems($items) {
+ $this->items = $items;
+ }
+ public function getItems() {
+ return $this->items;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+ public function setTotalItems($totalItems) {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems() {
+ return $this->totalItems;
+ }
+}
+
+class Google_Service_Blogger_User
+ extends Google_Model {
+ public $about;
+ protected $__blogsType = 'Google_Service_Blogger_UserBlogs';
+ protected $__blogsDataType = '';
+ public $blogs;
+ public $created;
+ public $displayName;
+ public $id;
+ public $kind;
+ protected $__localeType = 'Google_Service_Blogger_UserLocale';
+ protected $__localeDataType = '';
+ public $locale;
+ public $selfLink;
+ public $url;
+ public function setAbout($about) {
+ $this->about = $about;
+ }
+ public function getAbout() {
+ return $this->about;
+ }
+ public function setBlogs(Google_Service_Blogger_UserBlogs$blogs) {
+ $this->blogs = $blogs;
+ }
+ public function getBlogs() {
+ return $this->blogs;
+ }
+ public function setCreated($created) {
+ $this->created = $created;
+ }
+ public function getCreated() {
+ return $this->created;
+ }
+ 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 setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setLocale(Google_Service_Blogger_UserLocale$locale) {
+ $this->locale = $locale;
+ }
+ public function getLocale() {
+ return $this->locale;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+ public function setUrl($url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
+
+class Google_Service_Blogger_UserBlogs
+ extends Google_Model {
+ public $selfLink;
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_Blogger_UserLocale
+ extends Google_Model {
+ public $country;
+ public $language;
+ public $variant;
+ public function setCountry($country) {
+ $this->country = $country;
+ }
+ public function getCountry() {
+ return $this->country;
+ }
+ public function setLanguage($language) {
+ $this->language = $language;
+ }
+ public function getLanguage() {
+ return $this->language;
+ }
+ public function setVariant($variant) {
+ $this->variant = $variant;
+ }
+ public function getVariant() {
+ return $this->variant;
+ }
+}
diff --git a/src/Google/Service/Books.php b/src/Google/Service/Books.php
new file mode 100644
index 0000000..da86d63
--- /dev/null
+++ b/src/Google/Service/Books.php
@@ -0,0 +1,3552 @@
+
+ * Lets you search for books and manage your Google Books library.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Books extends Google_Service { + 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 $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) { + $this->servicePath = 'books/v1/'; + $this->version = 'v1'; + $this->serviceName = 'books'; + + $client->addService($this->serviceName, $this->version); + $this->bookshelves = new Google_Service_Books_Bookshelves_Resource($this, $this->serviceName, 'bookshelves', json_decode('{"methods": {"get": {"id": "books.bookshelves.get", "path": "users/{userId}/bookshelves/{shelf}", "httpMethod": "GET", "parameters": {"shelf": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}, "userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Bookshelf"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "list": {"id": "books.bookshelves.list", "path": "users/{userId}/bookshelves", "httpMethod": "GET", "parameters": {"source": {"type": "string", "location": "query"}, "userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Bookshelves"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true)); + $this->bookshelves_volumes = new Google_Service_Books_BookshelvesVolumes_Resource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"id": "books.bookshelves.volumes.list", "path": "users/{userId}/bookshelves/{shelf}/volumes", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "shelf": {"type": "string", "required": true, "location": "path"}, "showPreorders": {"type": "boolean", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Volumes"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true)); + $this->cloudloading = new Google_Service_Books_Cloudloading_Resource($this, $this->serviceName, 'cloudloading', json_decode('{"methods": {"addBook": {"id": "books.cloudloading.addBook", "path": "cloudloading/addBook", "httpMethod": "POST", "parameters": {"drive_document_id": {"type": "string", "location": "query"}, "mime_type": {"type": "string", "location": "query"}, "name": {"type": "string", "location": "query"}, "upload_client_token": {"type": "string", "location": "query"}}, "response": {"$ref": "BooksCloudloadingResource"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "deleteBook": {"id": "books.cloudloading.deleteBook", "path": "cloudloading/deleteBook", "httpMethod": "POST", "parameters": {"volumeId": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/books"]}, "updateBook": {"id": "books.cloudloading.updateBook", "path": "cloudloading/updateBook", "httpMethod": "POST", "request": {"$ref": "BooksCloudloadingResource"}, "response": {"$ref": "BooksCloudloadingResource"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true)); + $this->layers = new Google_Service_Books_Layers_Resource($this, $this->serviceName, 'layers', json_decode('{"methods": {"get": {"id": "books.layers.get", "path": "volumes/{volumeId}/layersummary/{summaryId}", "httpMethod": "GET", "parameters": {"contentVersion": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "summaryId": {"type": "string", "required": true, "location": "path"}, "volumeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Layersummary"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "list": {"id": "books.layers.list", "path": "volumes/{volumeId}/layersummary", "httpMethod": "GET", "parameters": {"contentVersion": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "200", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Layersummaries"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true)); + $this->layers_annotationData = new Google_Service_Books_LayersAnnotationData_Resource($this, $this->serviceName, 'annotationData', json_decode('{"methods": {"get": {"id": "books.layers.annotationData.get", "path": "volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}", "httpMethod": "GET", "parameters": {"annotationDataId": {"type": "string", "required": true, "location": "path"}, "contentVersion": {"type": "string", "required": true, "location": "query"}, "h": {"type": "integer", "format": "int32", "location": "query"}, "layerId": {"type": "string", "required": true, "location": "path"}, "locale": {"type": "string", "location": "query"}, "scale": {"type": "integer", "format": "int32", "minimum": "0", "location": "query"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}, "w": {"type": "integer", "format": "int32", "location": "query"}}, "response": {"$ref": "Annotationdata"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "list": {"id": "books.layers.annotationData.list", "path": "volumes/{volumeId}/layers/{layerId}/data", "httpMethod": "GET", "parameters": {"annotationDataId": {"type": "string", "repeated": true, "location": "query"}, "contentVersion": {"type": "string", "required": true, "location": "query"}, "h": {"type": "integer", "format": "int32", "location": "query"}, "layerId": {"type": "string", "required": true, "location": "path"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "200", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "scale": {"type": "integer", "format": "int32", "minimum": "0", "location": "query"}, "source": {"type": "string", "location": "query"}, "updatedMax": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}, "w": {"type": "integer", "format": "int32", "location": "query"}}, "response": {"$ref": "Annotationsdata"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true)); + $this->layers_volumeAnnotations = new Google_Service_Books_LayersVolumeAnnotations_Resource($this, $this->serviceName, 'volumeAnnotations', json_decode('{"methods": {"get": {"id": "books.layers.volumeAnnotations.get", "path": "volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}", "httpMethod": "GET", "parameters": {"annotationId": {"type": "string", "required": true, "location": "path"}, "layerId": {"type": "string", "required": true, "location": "path"}, "locale": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Volumeannotation"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "list": {"id": "books.layers.volumeAnnotations.list", "path": "volumes/{volumeId}/layers/{layerId}", "httpMethod": "GET", "parameters": {"contentVersion": {"type": "string", "required": true, "location": "query"}, "endOffset": {"type": "string", "location": "query"}, "endPosition": {"type": "string", "location": "query"}, "layerId": {"type": "string", "required": true, "location": "path"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "200", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "showDeleted": {"type": "boolean", "location": "query"}, "source": {"type": "string", "location": "query"}, "startOffset": {"type": "string", "location": "query"}, "startPosition": {"type": "string", "location": "query"}, "updatedMax": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}, "volumeAnnotationsVersion": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Volumeannotations"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true)); + $this->myconfig = new Google_Service_Books_Myconfig_Resource($this, $this->serviceName, 'myconfig', json_decode('{"methods": {"releaseDownloadAccess": {"id": "books.myconfig.releaseDownloadAccess", "path": "myconfig/releaseDownloadAccess", "httpMethod": "POST", "parameters": {"cpksver": {"type": "string", "required": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "volumeIds": {"type": "string", "required": true, "repeated": true, "location": "query"}}, "response": {"$ref": "DownloadAccesses"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "requestAccess": {"id": "books.myconfig.requestAccess", "path": "myconfig/requestAccess", "httpMethod": "POST", "parameters": {"cpksver": {"type": "string", "required": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "nonce": {"type": "string", "required": true, "location": "query"}, "source": {"type": "string", "required": true, "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "RequestAccess"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "syncVolumeLicenses": {"id": "books.myconfig.syncVolumeLicenses", "path": "myconfig/syncVolumeLicenses", "httpMethod": "POST", "parameters": {"cpksver": {"type": "string", "required": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "nonce": {"type": "string", "required": true, "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "source": {"type": "string", "required": true, "location": "query"}, "volumeIds": {"type": "string", "repeated": true, "location": "query"}}, "response": {"$ref": "Volumes"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true)); + $this->mylibrary_annotations = new Google_Service_Books_MylibraryAnnotations_Resource($this, $this->serviceName, 'annotations', json_decode('{"methods": {"delete": {"id": "books.mylibrary.annotations.delete", "path": "mylibrary/annotations/{annotationId}", "httpMethod": "DELETE", "parameters": {"annotationId": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/books"]}, "get": {"id": "books.mylibrary.annotations.get", "path": "mylibrary/annotations/{annotationId}", "httpMethod": "GET", "parameters": {"annotationId": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}}, "response": {"$ref": "Annotation"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "insert": {"id": "books.mylibrary.annotations.insert", "path": "mylibrary/annotations", "httpMethod": "POST", "parameters": {"source": {"type": "string", "location": "query"}}, "request": {"$ref": "Annotation"}, "response": {"$ref": "Annotation"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "list": {"id": "books.mylibrary.annotations.list", "path": "mylibrary/annotations", "httpMethod": "GET", "parameters": {"contentVersion": {"type": "string", "location": "query"}, "layerId": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "40", "location": "query"}, "pageIds": {"type": "string", "repeated": true, "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "showDeleted": {"type": "boolean", "location": "query"}, "source": {"type": "string", "location": "query"}, "updatedMax": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "location": "query"}}, "response": {"$ref": "Annotations"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "update": {"id": "books.mylibrary.annotations.update", "path": "mylibrary/annotations/{annotationId}", "httpMethod": "PUT", "parameters": {"annotationId": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}}, "request": {"$ref": "Annotation"}, "response": {"$ref": "Annotation"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true)); + $this->mylibrary_bookshelves = new Google_Service_Books_MylibraryBookshelves_Resource($this, $this->serviceName, 'bookshelves', json_decode('{"methods": {"addVolume": {"id": "books.mylibrary.bookshelves.addVolume", "path": "mylibrary/bookshelves/{shelf}/addVolume", "httpMethod": "POST", "parameters": {"shelf": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/books"]}, "clearVolumes": {"id": "books.mylibrary.bookshelves.clearVolumes", "path": "mylibrary/bookshelves/{shelf}/clearVolumes", "httpMethod": "POST", "parameters": {"shelf": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/books"]}, "get": {"id": "books.mylibrary.bookshelves.get", "path": "mylibrary/bookshelves/{shelf}", "httpMethod": "GET", "parameters": {"shelf": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}}, "response": {"$ref": "Bookshelf"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "list": {"id": "books.mylibrary.bookshelves.list", "path": "mylibrary/bookshelves", "httpMethod": "GET", "parameters": {"source": {"type": "string", "location": "query"}}, "response": {"$ref": "Bookshelves"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "moveVolume": {"id": "books.mylibrary.bookshelves.moveVolume", "path": "mylibrary/bookshelves/{shelf}/moveVolume", "httpMethod": "POST", "parameters": {"shelf": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "query"}, "volumePosition": {"type": "integer", "required": true, "format": "int32", "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/books"]}, "removeVolume": {"id": "books.mylibrary.bookshelves.removeVolume", "path": "mylibrary/bookshelves/{shelf}/removeVolume", "httpMethod": "POST", "parameters": {"shelf": {"type": "string", "required": true, "location": "path"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true)); + $this->mylibrary_bookshelves_volumes = new Google_Service_Books_MylibraryBookshelvesVolumes_Resource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"id": "books.mylibrary.bookshelves.volumes.list", "path": "mylibrary/bookshelves/{shelf}/volumes", "httpMethod": "GET", "parameters": {"country": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "projection": {"type": "string", "enum": ["full", "lite"], "location": "query"}, "q": {"type": "string", "location": "query"}, "shelf": {"type": "string", "required": true, "location": "path"}, "showPreorders": {"type": "boolean", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}}, "response": {"$ref": "Volumes"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true)); + $this->mylibrary_readingpositions = new Google_Service_Books_MylibraryReadingpositions_Resource($this, $this->serviceName, 'readingpositions', json_decode('{"methods": {"get": {"id": "books.mylibrary.readingpositions.get", "path": "mylibrary/readingpositions/{volumeId}", "httpMethod": "GET", "parameters": {"contentVersion": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ReadingPosition"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "setPosition": {"id": "books.mylibrary.readingpositions.setPosition", "path": "mylibrary/readingpositions/{volumeId}/setPosition", "httpMethod": "POST", "parameters": {"action": {"type": "string", "enum": ["bookmark", "chapter", "next-page", "prev-page", "scroll", "search"], "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "deviceCookie": {"type": "string", "location": "query"}, "position": {"type": "string", "required": true, "location": "query"}, "source": {"type": "string", "location": "query"}, "timestamp": {"type": "string", "required": true, "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true)); + $this->volumes = new Google_Service_Books_Volumes_Resource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"get": {"id": "books.volumes.get", "path": "volumes/{volumeId}", "httpMethod": "GET", "parameters": {"country": {"type": "string", "location": "query"}, "partner": {"type": "string", "location": "query"}, "projection": {"type": "string", "enum": ["full", "lite"], "location": "query"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Volume"}, "scopes": ["https://www.googleapis.com/auth/books"]}, "list": {"id": "books.volumes.list", "path": "volumes", "httpMethod": "GET", "parameters": {"download": {"type": "string", "enum": ["epub"], "location": "query"}, "filter": {"type": "string", "enum": ["ebooks", "free-ebooks", "full", "paid-ebooks", "partial"], "location": "query"}, "langRestrict": {"type": "string", "location": "query"}, "libraryRestrict": {"type": "string", "enum": ["my-library", "no-restrict"], "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "40", "location": "query"}, "orderBy": {"type": "string", "enum": ["newest", "relevance"], "location": "query"}, "partner": {"type": "string", "location": "query"}, "printType": {"type": "string", "enum": ["all", "books", "magazines"], "location": "query"}, "projection": {"type": "string", "enum": ["full", "lite"], "location": "query"}, "q": {"type": "string", "required": true, "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}}, "response": {"$ref": "Volumes"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true)); + $this->volumes_associated = new Google_Service_Books_VolumesAssociated_Resource($this, $this->serviceName, 'associated', json_decode('{"methods": {"list": {"id": "books.volumes.associated.list", "path": "volumes/{volumeId}/associated", "httpMethod": "GET", "parameters": {"association": {"type": "string", "enum": ["end-of-sample", "end-of-volume"], "location": "query"}, "locale": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Volumes"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true)); + $this->volumes_mybooks = new Google_Service_Books_VolumesMybooks_Resource($this, $this->serviceName, 'mybooks', json_decode('{"methods": {"list": {"id": "books.volumes.mybooks.list", "path": "volumes/mybooks", "httpMethod": "GET", "parameters": {"acquireMethod": {"type": "string", "enum": ["PREORDERED", "PUBLIC_DOMAIN", "PURCHASED", "SAMPLE", "UPLOADED"], "repeated": true, "location": "query"}, "locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "processingState": {"type": "string", "enum": ["COMPLETED_FAILED", "COMPLETED_SUCCESS", "RUNNING"], "repeated": true, "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}}, "response": {"$ref": "Volumes"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true)); + $this->volumes_recommended = new Google_Service_Books_VolumesRecommended_Resource($this, $this->serviceName, 'recommended', json_decode('{"methods": {"list": {"id": "books.volumes.recommended.list", "path": "volumes/recommended", "httpMethod": "GET", "parameters": {"locale": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}}, "response": {"$ref": "Volumes"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true)); + $this->volumes_useruploaded = new Google_Service_Books_VolumesUseruploaded_Resource($this, $this->serviceName, 'useruploaded', json_decode('{"methods": {"list": {"id": "books.volumes.useruploaded.list", "path": "volumes/useruploaded", "httpMethod": "GET", "parameters": {"locale": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "maximum": "40", "location": "query"}, "processingState": {"type": "string", "enum": ["COMPLETED_FAILED", "COMPLETED_SUCCESS", "RUNNING"], "repeated": true, "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "volumeId": {"type": "string", "repeated": true, "location": "query"}}, "response": {"$ref": "Volumes"}, "scopes": ["https://www.googleapis.com/auth/books"]}}}', true)); + + } +} + + + /** + * The "bookshelves" collection of methods. + * Typical usage is: + *
+ * $booksService = new Google_BooksService(...);
+ * $bookshelves = $booksService->bookshelves;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Bookshelf($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves a list of public bookshelves for the specified user. (bookshelves.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Bookshelves($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "volumes" collection of methods.
+ * Typical usage is:
+ *
+ * $booksService = new Google_BooksService(...);
+ * $volumes = $booksService->volumes;
+ *
+ */
+ class Google_Service_Books_BookshelvesVolumes_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Retrieves volumes in a specific bookshelf for the specified user. (volumes.list)
+ *
+ * @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 string maxResults Maximum number of results to return
+ * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Volumes($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "cloudloading" collection of methods.
+ * Typical usage is:
+ *
+ * $booksService = new Google_BooksService(...);
+ * $cloudloading = $booksService->cloudloading;
+ *
+ */
+ class Google_Service_Books_Cloudloading_Resource extends Google_Service_Resource {
+
+
+ /**
+ * (cloudloading.addBook)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @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.
+ * @opt_param string upload_client_token
+ * @return Google_Service_Books_BooksCloudloadingResource
+ */
+ public function addBook($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('addBook', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_BooksCloudloadingResource($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('deleteBook', array($params));
+ return $data;
+ }
+ /**
+ * (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);
+ $data = $this->__call('updateBook', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_BooksCloudloadingResource($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "layers" collection of methods.
+ * Typical usage is:
+ *
+ * $booksService = new Google_BooksService(...);
+ * $layers = $booksService->layers;
+ *
+ */
+ 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 contentVersion The content version for the requested volume.
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_Layersummary
+ */
+ public function get($volumeId, $summaryId, $optParams = array()) {
+ $params = array('volumeId' => $volumeId, 'summaryId' => $summaryId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Layersummary($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List the layer summaries for a volume. (layers.list)
+ *
+ * @param string $volumeId The volume to retrieve layers for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string contentVersion The content version for the requested volume.
+ * @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.
+ * @return Google_Service_Books_Layersummaries
+ */
+ public function listLayers($volumeId, $optParams = array()) {
+ $params = array('volumeId' => $volumeId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Layersummaries($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "annotationData" collection of methods.
+ * Typical usage is:
+ *
+ * $booksService = new Google_BooksService(...);
+ * $annotationData = $booksService->annotationData;
+ *
+ */
+ 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 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 scale The requested scale for the image.
+ * @opt_param string source String to identify the originator of this request.
+ * @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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Annotationdata($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Gets the annotation data for a volume and layer. (annotationData.list)
+ *
+ * @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 string annotationDataId The list of Annotation Data Ids to retrieve. Pagination is ignored if this is set.
+ * @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 string maxResults Maximum number of results to return
+ * @opt_param string pageToken The value of the nextToken from the previous page.
+ * @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 updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
+ * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
+ * @opt_param int w The requested pixel width for any images. If width is provided height must also be provided.
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Annotationsdata($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "volumeAnnotations" collection of methods.
+ * Typical usage is:
+ *
+ * $booksService = new Google_BooksService(...);
+ * $volumeAnnotations = $booksService->volumeAnnotations;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Volumeannotation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Gets the volume annotations for a volume and layer. (volumeAnnotations.list)
+ *
+ * @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 string endOffset The end offset to end retrieving data from.
+ * @opt_param string endPosition The end position 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 maxResults Maximum number of results to return
+ * @opt_param string pageToken The value of the nextToken from the previous page.
+ * @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 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.
+ * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
+ * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
+ * @opt_param string volumeAnnotationsVersion The version of the volume annotations that you are requesting.
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Volumeannotations($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "myconfig" collection of methods.
+ * Typical usage is:
+ *
+ * $booksService = new Google_BooksService(...);
+ * $myconfig = $booksService->myconfig;
+ *
+ */
+ 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);
+ $data = $this->__call('releaseDownloadAccess', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_DownloadAccesses($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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 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);
+ $data = $this->__call('requestAccess', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_RequestAccess($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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 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);
+ $data = $this->__call('syncVolumeLicenses', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Volumes($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "mylibrary" collection of methods.
+ * Typical usage is:
+ *
+ * $booksService = new Google_BooksService(...);
+ * $mylibrary = $booksService->mylibrary;
+ *
+ */
+ class Google_Service_Books_Mylibrary_Resource extends Google_Service_Resource {
+
+
+ }
+
+ /**
+ * The "annotations" collection of methods.
+ * Typical usage is:
+ *
+ * $booksService = new Google_BooksService(...);
+ * $annotations = $booksService->annotations;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Annotation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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.
+ * @return Google_Service_Books_Annotation
+ */
+ public function insert(Google_Service_Books_Annotation $postBody, $optParams = array()) {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Annotation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves a list of annotations, possibly filtered. (annotations.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string contentVersion The content version for the requested volume.
+ * @opt_param string layerId The layer ID to limit annotation by.
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string pageIds The page ID(s) for the volume that is being queried.
+ * @opt_param string pageToken The value of the nextToken from the previous page.
+ * @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 source String to identify the originator of this request.
+ * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
+ * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
+ * @opt_param string volumeId The volume to restrict annotations to.
+ * @return Google_Service_Books_Annotations
+ */
+ public function listMylibraryAnnotations($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Annotations($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Annotation($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "bookshelves" collection of methods.
+ * Typical usage is:
+ *
+ * $booksService = new Google_BooksService(...);
+ * $bookshelves = $booksService->bookshelves;
+ *
+ */
+ 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);
+ $data = $this->__call('addVolume', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('clearVolumes', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Bookshelf($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves a list of bookshelves belonging to the authenticated user. (bookshelves.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Bookshelves($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('moveVolume', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('removeVolume', array($params));
+ return $data;
+ }
+ }
+
+ /**
+ * The "volumes" collection of methods.
+ * Typical usage is:
+ *
+ * $booksService = new Google_BooksService(...);
+ * $volumes = $booksService->volumes;
+ *
+ */
+ class Google_Service_Books_MylibraryBookshelvesVolumes_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Gets volume information for volumes on a bookshelf. (volumes.list)
+ *
+ * @param string $shelf The bookshelf ID or name retrieve volumes for.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string country ISO-3166-1 code to override the IP-based location.
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string projection Restrict information returned to a set of selected fields.
+ * @opt_param string q Full-text search query string in this bookshelf.
+ * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Volumes($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "readingpositions" collection of methods.
+ * Typical usage is:
+ *
+ * $booksService = new Google_BooksService(...);
+ * $readingpositions = $booksService->readingpositions;
+ *
+ */
+ 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 contentVersion Volume content version for which this reading position is requested.
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_ReadingPosition
+ */
+ public function get($volumeId, $optParams = array()) {
+ $params = array('volumeId' => $volumeId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_ReadingPosition($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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 action Action that caused this reading position to be set.
+ * @opt_param string contentVersion Volume content version for which this reading position applies.
+ * @opt_param string deviceCookie Random persistent device cookie optional on set position.
+ * @opt_param string source String to identify the originator of this request.
+ */
+ public function setPosition($volumeId, $timestamp, $position, $optParams = array()) {
+ $params = array('volumeId' => $volumeId, 'timestamp' => $timestamp, 'position' => $position);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('setPosition', array($params));
+ return $data;
+ }
+ }
+
+ /**
+ * The "volumes" collection of methods.
+ * Typical usage is:
+ *
+ * $booksService = new Google_BooksService(...);
+ * $volumes = $booksService->volumes;
+ *
+ */
+ 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 country ISO-3166-1 code to override the IP-based location.
+ * @opt_param string partner Brand results for partner ID.
+ * @opt_param string projection Restrict information returned to a set of selected fields.
+ * @opt_param string source String to identify the originator of this request.
+ * @return Google_Service_Books_Volume
+ */
+ public function get($volumeId, $optParams = array()) {
+ $params = array('volumeId' => $volumeId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Volume($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Performs a book search. (volumes.list)
+ *
+ * @param string $q Full-text search query string.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string download Restrict to volumes by download availability.
+ * @opt_param string filter Filter search results.
+ * @opt_param string langRestrict Restrict results to books with this language code.
+ * @opt_param string libraryRestrict Restrict search to this user's library.
+ * @opt_param string maxResults Maximum number of results to return.
+ * @opt_param string orderBy Sort search results.
+ * @opt_param string partner Restrict and brand results for partner ID.
+ * @opt_param string printType Restrict to books or magazines.
+ * @opt_param string projection Restrict information returned to a set of selected fields.
+ * @opt_param bool showPreorders Set to true to show books available for preorder. Defaults to false.
+ * @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)
+ * @return Google_Service_Books_Volumes
+ */
+ public function listVolumes($q, $optParams = array()) {
+ $params = array('q' => $q);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Volumes($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "associated" collection of methods.
+ * Typical usage is:
+ *
+ * $booksService = new Google_BooksService(...);
+ * $associated = $booksService->associated;
+ *
+ */
+ class Google_Service_Books_VolumesAssociated_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Return a list of associated books. (associated.list)
+ *
+ * @param string $volumeId ID of the source volume.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string association Association type.
+ * @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 listVolumesAssociated($volumeId, $optParams = array()) {
+ $params = array('volumeId' => $volumeId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Volumes($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "mybooks" collection of methods.
+ * Typical usage is:
+ *
+ * $booksService = new Google_BooksService(...);
+ * $mybooks = $booksService->mybooks;
+ *
+ */
+ class Google_Service_Books_VolumesMybooks_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Return a list of books in My Library. (mybooks.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string acquireMethod How the book was aquired
+ * @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex:'en_US'. Used for generating recommendations.
+ * @opt_param string maxResults Maximum number of results to return.
+ * @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.
+ * @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)
+ * @return Google_Service_Books_Volumes
+ */
+ public function listVolumesMybooks($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Volumes($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "recommended" collection of methods.
+ * Typical usage is:
+ *
+ * $booksService = new Google_BooksService(...);
+ * $recommended = $booksService->recommended;
+ *
+ */
+ class Google_Service_Books_VolumesRecommended_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Return a list of recommended books for the current user. (recommended.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Volumes($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "useruploaded" collection of methods.
+ * Typical usage is:
+ *
+ * $booksService = new Google_BooksService(...);
+ * $useruploaded = $booksService->useruploaded;
+ *
+ */
+ class Google_Service_Books_VolumesUseruploaded_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Return a list of books uploaded by the current user. (useruploaded.list)
+ *
+ * @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 maxResults Maximum number of results to return.
+ * @opt_param string processingState The processing state of the user uploaded volumes to be returned.
+ * @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 volumeId The ids of the volumes to be returned. If not specified all that match the processingState are returned.
+ * @return Google_Service_Books_Volumes
+ */
+ public function listVolumesUseruploaded($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Books_Volumes($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Books_Annotation
+ extends Google_Collection {
+ public $afterSelectedText;
+ public $beforeSelectedText;
+ protected $__clientVersionRangesType = 'Google_Service_Books_AnnotationClientVersionRanges';
+ protected $__clientVersionRangesDataType = '';
+ public $clientVersionRanges;
+ public $created;
+ protected $__currentVersionRangesType = 'Google_Service_Books_AnnotationCurrentVersionRanges';
+ protected $__currentVersionRangesDataType = '';
+ public $currentVersionRanges;
+ public $data;
+ public $deleted;
+ public $highlightStyle;
+ public $id;
+ public $kind;
+ public $layerId;
+ 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 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 $cfiRange;
+ public $contentVersion;
+ protected $__gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $__gbImageRangeDataType = '';
+ public $gbImageRange;
+ protected $__gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $__gbTextRangeDataType = '';
+ public $gbTextRange;
+ protected $__imageCfiRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $__imageCfiRangeDataType = '';
+ public $imageCfiRange;
+ 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 $cfiRange;
+ public $contentVersion;
+ protected $__gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $__gbImageRangeDataType = '';
+ public $gbImageRange;
+ protected $__gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $__gbTextRangeDataType = '';
+ public $gbTextRange;
+ protected $__imageCfiRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $__imageCfiRangeDataType = '';
+ public $imageCfiRange;
+ 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_Annotationdata
+ extends Google_Model {
+ public $annotationType;
+ public $data;
+ public $encoded_data;
+ 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 setEncoded_data($encoded_data) {
+ $this->encoded_data = $encoded_data;
+ }
+ public function getEncoded_data() {
+ return $this->encoded_data;
+ }
+ 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;
+ }
+}
+
+class Google_Service_Books_Annotations
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Books_Annotation';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_Annotationsdata
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Books_Annotationdata';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_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_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_BooksLayerDictData
+ extends Google_Model {
+ protected $__commonType = 'Google_Service_Books_BooksLayerDictDataCommon';
+ protected $__commonDataType = '';
+ public $common;
+ protected $__dictType = 'Google_Service_Books_BooksLayerDictDataDict';
+ protected $__dictDataType = '';
+ public $dict;
+ public function setCommon(Google_Service_Books_BooksLayerDictDataCommon$common) {
+ $this->common = $common;
+ }
+ public function getCommon() {
+ return $this->common;
+ }
+ public function setDict(Google_Service_Books_BooksLayerDictDataDict$dict) {
+ $this->dict = $dict;
+ }
+ public function getDict() {
+ return $this->dict;
+ }
+}
+
+class Google_Service_Books_BooksLayerDictDataCommon
+ extends Google_Model {
+ public $title;
+ public function setTitle($title) {
+ $this->title = $title;
+ }
+ public function getTitle() {
+ return $this->title;
+ }
+}
+
+class Google_Service_Books_BooksLayerDictDataDict
+ extends Google_Collection {
+ protected $__sourceType = 'Google_Service_Books_BooksLayerDictDataDictSource';
+ protected $__sourceDataType = '';
+ public $source;
+ protected $__wordsType = 'Google_Service_Books_BooksLayerDictDataDictWords';
+ protected $__wordsDataType = 'array';
+ public $words;
+ public function setSource(Google_Service_Books_BooksLayerDictDataDictSource$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_BooksLayerDictDataDictSource
+ 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_BooksLayerDictDataDictWords
+ extends Google_Collection {
+ protected $__derivativesType = 'Google_Service_Books_BooksLayerDictDataDictWordsDerivatives';
+ protected $__derivativesDataType = 'array';
+ public $derivatives;
+ protected $__examplesType = 'Google_Service_Books_BooksLayerDictDataDictWordsExamples';
+ protected $__examplesDataType = 'array';
+ public $examples;
+ protected $__sensesType = 'Google_Service_Books_BooksLayerDictDataDictWordsSenses';
+ protected $__sensesDataType = 'array';
+ public $senses;
+ protected $__sourceType = 'Google_Service_Books_BooksLayerDictDataDictWordsSource';
+ protected $__sourceDataType = '';
+ public $source;
+ 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_BooksLayerDictDataDictWordsSource$source) {
+ $this->source = $source;
+ }
+ public function getSource() {
+ return $this->source;
+ }
+}
+
+class Google_Service_Books_BooksLayerDictDataDictWordsDerivatives
+ extends Google_Model {
+ protected $__sourceType = 'Google_Service_Books_BooksLayerDictDataDictWordsDerivativesSource';
+ protected $__sourceDataType = '';
+ public $source;
+ public $text;
+ public function setSource(Google_Service_Books_BooksLayerDictDataDictWordsDerivativesSource$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_BooksLayerDictDataDictWordsDerivativesSource
+ 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_BooksLayerDictDataDictWordsExamples
+ extends Google_Model {
+ protected $__sourceType = 'Google_Service_Books_BooksLayerDictDataDictWordsExamplesSource';
+ protected $__sourceDataType = '';
+ public $source;
+ public $text;
+ public function setSource(Google_Service_Books_BooksLayerDictDataDictWordsExamplesSource$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_BooksLayerDictDataDictWordsExamplesSource
+ 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_BooksLayerDictDataDictWordsSenses
+ extends Google_Collection {
+ protected $__conjugationsType = 'Google_Service_Books_BooksLayerDictDataDictWordsSensesConjugations';
+ protected $__conjugationsDataType = 'array';
+ public $conjugations;
+ protected $__definitionsType = 'Google_Service_Books_BooksLayerDictDataDictWordsSensesDefinitions';
+ protected $__definitionsDataType = 'array';
+ public $definitions;
+ public $partOfSpeech;
+ public $pronunciation;
+ public $pronunciationUrl;
+ protected $__sourceType = 'Google_Service_Books_BooksLayerDictDataDictWordsSensesSource';
+ protected $__sourceDataType = '';
+ public $source;
+ public $syllabification;
+ protected $__synonymsType = 'Google_Service_Books_BooksLayerDictDataDictWordsSensesSynonyms';
+ protected $__synonymsDataType = 'array';
+ public $synonyms;
+ 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_BooksLayerDictDataDictWordsSensesSource$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_BooksLayerDictDataDictWordsSensesConjugations
+ 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_BooksLayerDictDataDictWordsSensesDefinitions
+ extends Google_Collection {
+ public $definition;
+ protected $__examplesType = 'Google_Service_Books_BooksLayerDictDataDictWordsSensesDefinitionsExamples';
+ protected $__examplesDataType = 'array';
+ public $examples;
+ 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_BooksLayerDictDataDictWordsSensesDefinitionsExamples
+ extends Google_Model {
+ protected $__sourceType = 'Google_Service_Books_BooksLayerDictDataDictWordsSensesDefinitionsExamplesSource';
+ protected $__sourceDataType = '';
+ public $source;
+ public $text;
+ public function setSource(Google_Service_Books_BooksLayerDictDataDictWordsSensesDefinitionsExamplesSource$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_BooksLayerDictDataDictWordsSensesDefinitionsExamplesSource
+ 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_BooksLayerDictDataDictWordsSensesSource
+ 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_BooksLayerDictDataDictWordsSensesSynonyms
+ extends Google_Model {
+ protected $__sourceType = 'Google_Service_Books_BooksLayerDictDataDictWordsSensesSynonymsSource';
+ protected $__sourceDataType = '';
+ public $source;
+ public $text;
+ public function setSource(Google_Service_Books_BooksLayerDictDataDictWordsSensesSynonymsSource$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_BooksLayerDictDataDictWordsSensesSynonymsSource
+ 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_BooksLayerDictDataDictWordsSource
+ 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_BooksLayerGeoData
+ extends Google_Model {
+ protected $__commonType = 'Google_Service_Books_BooksLayerGeoDataCommon';
+ protected $__commonDataType = '';
+ public $common;
+ protected $__geoType = 'Google_Service_Books_BooksLayerGeoDataGeo';
+ protected $__geoDataType = '';
+ public $geo;
+ public function setCommon(Google_Service_Books_BooksLayerGeoDataCommon$common) {
+ $this->common = $common;
+ }
+ public function getCommon() {
+ return $this->common;
+ }
+ public function setGeo(Google_Service_Books_BooksLayerGeoDataGeo$geo) {
+ $this->geo = $geo;
+ }
+ public function getGeo() {
+ return $this->geo;
+ }
+}
+
+class Google_Service_Books_BooksLayerGeoDataCommon
+ 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_BooksLayerGeoDataGeo
+ extends Google_Collection {
+ protected $__boundaryType = 'Google_Service_Books_BooksLayerGeoDataGeoBoundary';
+ protected $__boundaryDataType = 'array';
+ public $boundary;
+ public $cachePolicy;
+ public $countryCode;
+ public $latitude;
+ public $longitude;
+ public $mapType;
+ protected $__viewportType = 'Google_Service_Books_BooksLayerGeoDataGeoViewport';
+ protected $__viewportDataType = '';
+ public $viewport;
+ 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_BooksLayerGeoDataGeoViewport$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_BooksLayerGeoDataGeoBoundary
+ 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_BooksLayerGeoDataGeoViewport
+ extends Google_Model {
+ protected $__hiType = 'Google_Service_Books_BooksLayerGeoDataGeoViewportHi';
+ protected $__hiDataType = '';
+ public $hi;
+ protected $__loType = 'Google_Service_Books_BooksLayerGeoDataGeoViewportLo';
+ protected $__loDataType = '';
+ public $lo;
+ public function setHi(Google_Service_Books_BooksLayerGeoDataGeoViewportHi$hi) {
+ $this->hi = $hi;
+ }
+ public function getHi() {
+ return $this->hi;
+ }
+ public function setLo(Google_Service_Books_BooksLayerGeoDataGeoViewportLo$lo) {
+ $this->lo = $lo;
+ }
+ public function getLo() {
+ return $this->lo;
+ }
+}
+
+class Google_Service_Books_BooksLayerGeoDataGeoViewportHi
+ 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_BooksLayerGeoDataGeoViewportLo
+ 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_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 $items;
+ 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_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_DownloadAccesses
+ extends Google_Collection {
+ protected $__downloadAccessListType = 'Google_Service_Books_DownloadAccessRestriction';
+ protected $__downloadAccessListDataType = 'array';
+ public $downloadAccessList;
+ 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_Layersummaries
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Books_Layersummary';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_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_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 = '';
+ public $concurrentAccess;
+ protected $__downloadAccessType = 'Google_Service_Books_DownloadAccessRestriction';
+ protected $__downloadAccessDataType = '';
+ public $downloadAccess;
+ 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 $author;
+ public $content;
+ public $date;
+ public $fullTextUrl;
+ public $kind;
+ public $rating;
+ protected $__sourceType = 'Google_Service_Books_ReviewSource';
+ protected $__sourceDataType = '';
+ public $source;
+ 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 $accessInfo;
+ public $etag;
+ public $id;
+ public $kind;
+ protected $__layerInfoType = 'Google_Service_Books_VolumeLayerInfo';
+ protected $__layerInfoDataType = '';
+ public $layerInfo;
+ protected $__recommendedInfoType = 'Google_Service_Books_VolumeRecommendedInfo';
+ protected $__recommendedInfoDataType = '';
+ public $recommendedInfo;
+ protected $__saleInfoType = 'Google_Service_Books_VolumeSaleInfo';
+ protected $__saleInfoDataType = '';
+ public $saleInfo;
+ protected $__searchInfoType = 'Google_Service_Books_VolumeSearchInfo';
+ protected $__searchInfoDataType = '';
+ public $searchInfo;
+ public $selfLink;
+ protected $__userInfoType = 'Google_Service_Books_VolumeUserInfo';
+ protected $__userInfoDataType = '';
+ public $userInfo;
+ protected $__volumeInfoType = 'Google_Service_Books_VolumeVolumeInfo';
+ protected $__volumeInfoDataType = '';
+ public $volumeInfo;
+ 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 $downloadAccess;
+ public $embeddable;
+ protected $__epubType = 'Google_Service_Books_VolumeAccessInfoEpub';
+ protected $__epubDataType = '';
+ public $epub;
+ protected $__pdfType = 'Google_Service_Books_VolumeAccessInfoPdf';
+ protected $__pdfDataType = '';
+ public $pdf;
+ public $publicDomain;
+ 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 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 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 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_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_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_VolumeLayerInfo
+ extends Google_Collection {
+ protected $__layersType = 'Google_Service_Books_VolumeLayerInfoLayers';
+ protected $__layersDataType = 'array';
+ public $layers;
+ public function setLayers($layers) {
+ $this->layers = $layers;
+ }
+ public function getLayers() {
+ return $this->layers;
+ }
+}
+
+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_VolumeRecommendedInfo
+ extends Google_Model {
+ public $explanation;
+ public function setExplanation($explanation) {
+ $this->explanation = $explanation;
+ }
+ public function getExplanation() {
+ return $this->explanation;
+ }
+}
+
+class Google_Service_Books_VolumeSaleInfo
+ extends Google_Model {
+ public $buyLink;
+ public $country;
+ public $isEbook;
+ protected $__listPriceType = 'Google_Service_Books_VolumeSaleInfoListPrice';
+ protected $__listPriceDataType = '';
+ public $listPrice;
+ public $onSaleDate;
+ protected $__retailPriceType = 'Google_Service_Books_VolumeSaleInfoRetailPrice';
+ protected $__retailPriceDataType = '';
+ public $retailPrice;
+ 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 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_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_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_VolumeSearchInfo
+ extends Google_Model {
+ public $textSnippet;
+ public function setTextSnippet($textSnippet) {
+ $this->textSnippet = $textSnippet;
+ }
+ public function getTextSnippet() {
+ return $this->textSnippet;
+ }
+}
+
+class Google_Service_Books_VolumeUserInfo
+ extends Google_Model {
+ public $isInMyBooks;
+ public $isPreordered;
+ public $isPurchased;
+ public $isUploaded;
+ protected $__readingPositionType = 'Google_Service_Books_ReadingPosition';
+ protected $__readingPositionDataType = '';
+ public $readingPosition;
+ protected $__reviewType = 'Google_Service_Books_Review';
+ protected $__reviewDataType = '';
+ public $review;
+ public $updated;
+ protected $__userUploadedVolumeInfoType = 'Google_Service_Books_VolumeUserInfoUserUploadedVolumeInfo';
+ protected $__userUploadedVolumeInfoDataType = '';
+ public $userUploadedVolumeInfo;
+ 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 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_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 = '';
+ public $dimensions;
+ protected $__imageLinksType = 'Google_Service_Books_VolumeVolumeInfoImageLinks';
+ protected $__imageLinksDataType = '';
+ public $imageLinks;
+ protected $__industryIdentifiersType = 'Google_Service_Books_VolumeVolumeInfoIndustryIdentifiers';
+ protected $__industryIdentifiersDataType = 'array';
+ public $industryIdentifiers;
+ public $infoLink;
+ public $language;
+ public $mainCategory;
+ public $pageCount;
+ public $previewLink;
+ public $printType;
+ public $publishedDate;
+ public $publisher;
+ public $ratingsCount;
+ 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 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 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_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 $contentRanges;
+ 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_VolumeannotationContentRanges
+ extends Google_Model {
+ protected $__cfiRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $__cfiRangeDataType = '';
+ public $cfiRange;
+ public $contentVersion;
+ protected $__gbImageRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $__gbImageRangeDataType = '';
+ public $gbImageRange;
+ protected $__gbTextRangeType = 'Google_Service_Books_BooksAnnotationsRange';
+ protected $__gbTextRangeDataType = '';
+ public $gbTextRange;
+ 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 $items;
+ 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 $items;
+ 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/src/Google/Service/Calendar.php b/src/Google/Service/Calendar.php
new file mode 100644
index 0000000..7f922d3
--- /dev/null
+++ b/src/Google/Service/Calendar.php
@@ -0,0 +1,1993 @@
+
+ * Lets you manipulate events and other calendar data.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Calendar extends Google_Service { + public $acl; + public $calendarList; + public $calendars; + 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) { + $this->servicePath = 'calendar/v3/'; + $this->version = 'v3'; + $this->serviceName = 'calendar'; + + $client->addService($this->serviceName, $this->version); + $this->acl = new Google_Service_Calendar_Acl_Resource($this, $this->serviceName, 'acl', json_decode('{"methods": {"delete": {"id": "calendar.acl.delete", "path": "calendars/{calendarId}/acl/{ruleId}", "httpMethod": "DELETE", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "ruleId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "get": {"id": "calendar.acl.get", "path": "calendars/{calendarId}/acl/{ruleId}", "httpMethod": "GET", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "ruleId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AclRule"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "insert": {"id": "calendar.acl.insert", "path": "calendars/{calendarId}/acl", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "list": {"id": "calendar.acl.list", "path": "calendars/{calendarId}/acl", "httpMethod": "GET", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Acl"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "patch": {"id": "calendar.acl.patch", "path": "calendars/{calendarId}/acl/{ruleId}", "httpMethod": "PATCH", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "ruleId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "update": {"id": "calendar.acl.update", "path": "calendars/{calendarId}/acl/{ruleId}", "httpMethod": "PUT", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "ruleId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AclRule"}, "response": {"$ref": "AclRule"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}}}', true)); + $this->calendarList = new Google_Service_Calendar_CalendarList_Resource($this, $this->serviceName, 'calendarList', json_decode('{"methods": {"delete": {"id": "calendar.calendarList.delete", "path": "users/me/calendarList/{calendarId}", "httpMethod": "DELETE", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "get": {"id": "calendar.calendarList.get", "path": "users/me/calendarList/{calendarId}", "httpMethod": "GET", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CalendarListEntry"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "insert": {"id": "calendar.calendarList.insert", "path": "users/me/calendarList", "httpMethod": "POST", "parameters": {"colorRgbFormat": {"type": "boolean", "location": "query"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "list": {"id": "calendar.calendarList.list", "path": "users/me/calendarList", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "minAccessRole": {"type": "string", "enum": ["freeBusyReader", "owner", "reader", "writer"], "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "showHidden": {"type": "boolean", "location": "query"}}, "response": {"$ref": "CalendarList"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "patch": {"id": "calendar.calendarList.patch", "path": "users/me/calendarList/{calendarId}", "httpMethod": "PATCH", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "colorRgbFormat": {"type": "boolean", "location": "query"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "update": {"id": "calendar.calendarList.update", "path": "users/me/calendarList/{calendarId}", "httpMethod": "PUT", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "colorRgbFormat": {"type": "boolean", "location": "query"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}}}', true)); + $this->calendars = new Google_Service_Calendar_Calendars_Resource($this, $this->serviceName, 'calendars', json_decode('{"methods": {"clear": {"id": "calendar.calendars.clear", "path": "calendars/{calendarId}/clear", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "delete": {"id": "calendar.calendars.delete", "path": "calendars/{calendarId}", "httpMethod": "DELETE", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "get": {"id": "calendar.calendars.get", "path": "calendars/{calendarId}", "httpMethod": "GET", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Calendar"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "insert": {"id": "calendar.calendars.insert", "path": "calendars", "httpMethod": "POST", "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "patch": {"id": "calendar.calendars.patch", "path": "calendars/{calendarId}", "httpMethod": "PATCH", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "update": {"id": "calendar.calendars.update", "path": "calendars/{calendarId}", "httpMethod": "PUT", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}}}', true)); + $this->colors = new Google_Service_Calendar_Colors_Resource($this, $this->serviceName, 'colors', json_decode('{"methods": {"get": {"id": "calendar.colors.get", "path": "colors", "httpMethod": "GET", "response": {"$ref": "Colors"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}}}', true)); + $this->events = new Google_Service_Calendar_Events_Resource($this, $this->serviceName, 'events', json_decode('{"methods": {"delete": {"id": "calendar.events.delete", "path": "calendars/{calendarId}/events/{eventId}", "httpMethod": "DELETE", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "eventId": {"type": "string", "required": true, "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "get": {"id": "calendar.events.get", "path": "calendars/{calendarId}/events/{eventId}", "httpMethod": "GET", "parameters": {"alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "calendarId": {"type": "string", "required": true, "location": "path"}, "eventId": {"type": "string", "required": true, "location": "path"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "timeZone": {"type": "string", "location": "query"}}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "import": {"id": "calendar.events.import", "path": "calendars/{calendarId}/events/import", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "insert": {"id": "calendar.events.insert", "path": "calendars/{calendarId}/events", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "instances": {"id": "calendar.events.instances", "path": "calendars/{calendarId}/events/{eventId}/instances", "httpMethod": "GET", "parameters": {"alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "calendarId": {"type": "string", "required": true, "location": "path"}, "eventId": {"type": "string", "required": true, "location": "path"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "originalStart": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "showDeleted": {"type": "boolean", "location": "query"}, "timeMax": {"type": "string", "format": "date-time", "location": "query"}, "timeMin": {"type": "string", "format": "date-time", "location": "query"}, "timeZone": {"type": "string", "location": "query"}}, "response": {"$ref": "Events"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "supportsSubscription": true}, "list": {"id": "calendar.events.list", "path": "calendars/{calendarId}/events", "httpMethod": "GET", "parameters": {"alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "calendarId": {"type": "string", "required": true, "location": "path"}, "iCalUID": {"type": "string", "location": "query"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "orderBy": {"type": "string", "enum": ["startTime", "updated"], "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}, "showDeleted": {"type": "boolean", "location": "query"}, "showHiddenInvitations": {"type": "boolean", "location": "query"}, "singleEvents": {"type": "boolean", "location": "query"}, "timeMax": {"type": "string", "format": "date-time", "location": "query"}, "timeMin": {"type": "string", "format": "date-time", "location": "query"}, "timeZone": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "format": "date-time", "location": "query"}}, "response": {"$ref": "Events"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "supportsSubscription": true}, "move": {"id": "calendar.events.move", "path": "calendars/{calendarId}/events/{eventId}/move", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "destination": {"type": "string", "required": true, "location": "query"}, "eventId": {"type": "string", "required": true, "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "patch": {"id": "calendar.events.patch", "path": "calendars/{calendarId}/events/{eventId}", "httpMethod": "PATCH", "parameters": {"alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "calendarId": {"type": "string", "required": true, "location": "path"}, "eventId": {"type": "string", "required": true, "location": "path"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "quickAdd": {"id": "calendar.events.quickAdd", "path": "calendars/{calendarId}/events/quickAdd", "httpMethod": "POST", "parameters": {"calendarId": {"type": "string", "required": true, "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}, "text": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}, "update": {"id": "calendar.events.update", "path": "calendars/{calendarId}/events/{eventId}", "httpMethod": "PUT", "parameters": {"alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "calendarId": {"type": "string", "required": true, "location": "path"}, "eventId": {"type": "string", "required": true, "location": "path"}, "maxAttendees": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "scopes": ["https://www.googleapis.com/auth/calendar"]}}}', true)); + $this->freebusy = new Google_Service_Calendar_Freebusy_Resource($this, $this->serviceName, 'freebusy', json_decode('{"methods": {"query": {"id": "calendar.freebusy.query", "path": "freeBusy", "httpMethod": "POST", "request": {"$ref": "FreeBusyRequest"}, "response": {"$ref": "FreeBusyResponse"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}}}', true)); + $this->settings = new Google_Service_Calendar_Settings_Resource($this, $this->serviceName, 'settings', json_decode('{"methods": {"get": {"id": "calendar.settings.get", "path": "users/me/settings/{setting}", "httpMethod": "GET", "parameters": {"setting": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Setting"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}, "list": {"id": "calendar.settings.list", "path": "users/me/settings", "httpMethod": "GET", "response": {"$ref": "Settings"}, "scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"]}}}', true)); + + } +} + + + /** + * The "acl" collection of methods. + * Typical usage is: + *
+ * $calendarService = new Google_CalendarService(...);
+ * $acl = $calendarService->acl;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_AclRule($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_AclRule($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Returns the rules in the access control list for the calendar. (acl.list)
+ *
+ * @param string $calendarId Calendar identifier.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Calendar_Acl
+ */
+ public function listAcl($calendarId, $optParams = array()) {
+ $params = array('calendarId' => $calendarId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_Acl($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_AclRule($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_AclRule($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "calendarList" collection of methods.
+ * Typical usage is:
+ *
+ * $calendarService = new Google_CalendarService(...);
+ * $calendarList = $calendarService->calendarList;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_CalendarListEntry($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_CalendarListEntry($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Returns entries on the user's calendar list. (calendarList.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of entries returned on one result page. Optional.
+ * @opt_param string minAccessRole The minimum access role for the user in the returned entires. Optional. The default is no restriction.
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_CalendarList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_CalendarListEntry($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_CalendarListEntry($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "calendars" collection of methods.
+ * Typical usage is:
+ *
+ * $calendarService = new Google_CalendarService(...);
+ * $calendars = $calendarService->calendars;
+ *
+ */
+ 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);
+ $data = $this->__call('clear', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_Calendar($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_Calendar($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_Calendar($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_Calendar($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "colors" collection of methods.
+ * Typical usage is:
+ *
+ * $calendarService = new Google_CalendarService(...);
+ * $colors = $calendarService->colors;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_Colors($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "events" collection of methods.
+ * Typical usage is:
+ *
+ * $calendarService = new Google_CalendarService(...);
+ * $events = $calendarService->events;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * Returns an event. (events.get)
+ *
+ * @param string $calendarId Calendar identifier.
+ * @param string $eventId Event identifier.
+ * @param array $optParams Optional parameters.
+ *
+ * @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.
+ * @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
+ * @return Google_Service_Calendar_Event
+ */
+ public function get($calendarId, $eventId, $optParams = array()) {
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_Event($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Imports an event. (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);
+ $data = $this->__call('import', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_Event($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Creates an event. (events.insert)
+ *
+ * @param string $calendarId Calendar identifier.
+ * @param Google_Event $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @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.
+ * @opt_param bool sendNotifications Whether to send notifications about the creation of the new event. Optional. The default is False.
+ * @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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_Event($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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 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.
+ * @opt_param int maxResults Maximum number of events returned on one result page. Optional.
+ * @opt_param string originalStart The original start time of the instance in the result. Optional.
+ * @opt_param string pageToken Token specifying which result page to return. Optional.
+ * @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 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.
+ * @return Google_Service_Calendar_Events
+ */
+ public function instances($calendarId, $eventId, $optParams = array()) {
+ $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('instances', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_Events($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Returns events on the specified calendar. (events.list)
+ *
+ * @param string $calendarId Calendar identifier.
+ * @param array $optParams Optional parameters.
+ *
+ * @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 string iCalUID Specifies iCalendar UID (iCalUID) of events to be included in the response. 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.
+ * @opt_param int maxResults Maximum number of events returned on one result page. Optional.
+ * @opt_param string orderBy The order of the events returned in the result. Optional. The default is an unspecified, stable order.
+ * @opt_param string pageToken Token specifying which result page to return. 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 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 bool showHiddenInvitations Whether to include hidden invitations in the result. Optional. The default is False.
+ * @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 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 updatedMin Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time.
+ * @return Google_Service_Calendar_Events
+ */
+ public function listEvents($calendarId, $optParams = array()) {
+ $params = array('calendarId' => $calendarId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_Events($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('move', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_Event($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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 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.
+ * @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.
+ * @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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_Event($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('quickAdd', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_Event($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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 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.
+ * @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.
+ * @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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_Event($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "freebusy" collection of methods.
+ * Typical usage is:
+ *
+ * $calendarService = new Google_CalendarService(...);
+ * $freebusy = $calendarService->freebusy;
+ *
+ */
+ 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);
+ $data = $this->__call('query', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_FreeBusyResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "settings" collection of methods.
+ * Typical usage is:
+ *
+ * $calendarService = new Google_CalendarService(...);
+ * $settings = $calendarService->settings;
+ *
+ */
+ class Google_Service_Calendar_Settings_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Returns a single user setting. (settings.get)
+ *
+ * @param string $setting Name 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_Setting($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Returns all user settings for the authenticated user. (settings.list)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Calendar_Settings
+ */
+ public function listSettings($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Calendar_Settings($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Calendar_Acl
+ extends Google_Collection {
+ public $etag;
+ protected $__itemsType = 'Google_Service_Calendar_AclRule';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
+
+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 $scope;
+ 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 setRole($role) {
+ $this->role = $role;
+ }
+ public function getRole() {
+ return $this->role;
+ }
+ public function setScope(Google_Service_Calendar_AclRuleScope$scope) {
+ $this->scope = $scope;
+ }
+ public function getScope() {
+ return $this->scope;
+ }
+}
+
+class Google_Service_Calendar_AclRuleScope
+ 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_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 getDescription() {
+ return $this->description;
+ }
+ 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 setLocation($location) {
+ $this->location = $location;
+ }
+ public function getLocation() {
+ return $this->location;
+ }
+ public function setSummary($summary) {
+ $this->summary = $summary;
+ }
+ public function getSummary() {
+ return $this->summary;
+ }
+ public function setTimeZone($timeZone) {
+ $this->timeZone = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_Calendar_CalendarListEntry
+ extends Google_Collection {
+ public $accessRole;
+ public $backgroundColor;
+ public $colorId;
+ protected $__defaultRemindersType = 'Google_Service_Calendar_EventReminder';
+ protected $__defaultRemindersDataType = 'array';
+ public $defaultReminders;
+ public $description;
+ public $etag;
+ public $foregroundColor;
+ public $hidden;
+ public $id;
+ public $kind;
+ public $location;
+ public $primary;
+ public $selected;
+ public $summary;
+ public $summaryOverride;
+ public $timeZone;
+ public function setAccessRole($accessRole) {
+ $this->accessRole = $accessRole;
+ }
+ public function getAccessRole() {
+ return $this->accessRole;
+ }
+ public function setBackgroundColor($backgroundColor) {
+ $this->backgroundColor = $backgroundColor;
+ }
+ public function getBackgroundColor() {
+ return $this->backgroundColor;
+ }
+ public function setColorId($colorId) {
+ $this->colorId = $colorId;
+ }
+ public function getColorId() {
+ return $this->colorId;
+ }
+ public function setDefaultReminders($defaultReminders) {
+ $this->defaultReminders = $defaultReminders;
+ }
+ public function getDefaultReminders() {
+ return $this->defaultReminders;
+ }
+ public function setDescription($description) {
+ $this->description = $description;
+ }
+ public function getDescription() {
+ return $this->description;
+ }
+ public function setEtag($etag) {
+ $this->etag = $etag;
+ }
+ public function getEtag() {
+ return $this->etag;
+ }
+ public function setForegroundColor($foregroundColor) {
+ $this->foregroundColor = $foregroundColor;
+ }
+ public function getForegroundColor() {
+ return $this->foregroundColor;
+ }
+ public function setHidden($hidden) {
+ $this->hidden = $hidden;
+ }
+ public function getHidden() {
+ return $this->hidden;
+ }
+ 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 setPrimary($primary) {
+ $this->primary = $primary;
+ }
+ public function getPrimary() {
+ return $this->primary;
+ }
+ public function setSelected($selected) {
+ $this->selected = $selected;
+ }
+ public function getSelected() {
+ return $this->selected;
+ }
+ public function setSummary($summary) {
+ $this->summary = $summary;
+ }
+ public function getSummary() {
+ return $this->summary;
+ }
+ public function setSummaryOverride($summaryOverride) {
+ $this->summaryOverride = $summaryOverride;
+ }
+ public function getSummaryOverride() {
+ return $this->summaryOverride;
+ }
+ public function setTimeZone($timeZone) {
+ $this->timeZone = $timeZone;
+ }
+ public function getTimeZone() {
+ return $this->timeZone;
+ }
+}
+
+class Google_Service_Calendar_ColorDefinition
+ extends Google_Model {
+ public $background;
+ public $foreground;
+ public function setBackground($background) {
+ $this->background = $background;
+ }
+ public function getBackground() {
+ return $this->background;
+ }
+ public function setForeground($foreground) {
+ $this->foreground = $foreground;
+ }
+ public function getForeground() {
+ return $this->foreground;
+ }
+}
+
+class Google_Service_Calendar_Colors
+ extends Google_Model {
+ protected $__calendarType = 'Google_Service_Calendar_ColorDefinition';
+ protected $__calendarDataType = 'map';
+ public $calendar;
+ protected $__eventType = 'Google_Service_Calendar_ColorDefinition';
+ protected $__eventDataType = 'map';
+ public $event;
+ public $kind;
+ public $updated;
+ public function setCalendar(Google_Service_Calendar_ColorDefinition$calendar) {
+ $this->calendar = $calendar;
+ }
+ public function getCalendar() {
+ return $this->calendar;
+ }
+ public function setEvent(Google_Service_Calendar_ColorDefinition$event) {
+ $this->event = $event;
+ }
+ public function getEvent() {
+ return $this->event;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setUpdated($updated) {
+ $this->updated = $updated;
+ }
+ public function getUpdated() {
+ return $this->updated;
+ }
+}
+
+class Google_Service_Calendar_Error
+ extends Google_Model {
+ public $domain;
+ public $reason;
+ public function setDomain($domain) {
+ $this->domain = $domain;
+ }
+ public function getDomain() {
+ return $this->domain;
+ }
+ public function setReason($reason) {
+ $this->reason = $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 $attendees;
+ public $attendeesOmitted;
+ public $colorId;
+ public $created;
+ protected $__creatorType = 'Google_Service_Calendar_EventCreator';
+ protected $__creatorDataType = '';
+ public $creator;
+ public $description;
+ protected $__endType = 'Google_Service_Calendar_EventDateTime';
+ protected $__endDataType = '';
+ public $end;
+ public $endTimeUnspecified;
+ public $etag;
+ protected $__extendedPropertiesType = 'Google_Service_Calendar_EventExtendedProperties';
+ protected $__extendedPropertiesDataType = '';
+ public $extendedProperties;
+ protected $__gadgetType = 'Google_Service_Calendar_EventGadget';
+ protected $__gadgetDataType = '';
+ public $gadget;
+ 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 = '';
+ public $organizer;
+ protected $__originalStartTimeType = 'Google_Service_Calendar_EventDateTime';
+ protected $__originalStartTimeDataType = '';
+ public $originalStartTime;
+ public $privateCopy;
+ public $recurrence;
+ public $recurringEventId;
+ protected $__remindersType = 'Google_Service_Calendar_EventReminders';
+ protected $__remindersDataType = '';
+ public $reminders;
+ public $sequence;
+ protected $__sourceType = 'Google_Service_Calendar_EventSource';
+ protected $__sourceDataType = '';
+ public $source;
+ protected $__startType = 'Google_Service_Calendar_EventDateTime';
+ protected $__startDataType = '';
+ public $start;
+ 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;
+ public function setAdditionalGuests($additionalGuests) {
+ $this->additionalGuests = $additionalGuests;
+ }
+ public function getAdditionalGuests() {
+ return $this->additionalGuests;
+ }
+ public function setComment($comment) {
+ $this->comment = $comment;
+ }
+ public function getComment() {
+ return $this->comment;
+ }
+ public function setDisplayName($displayName) {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName() {
+ return $this->displayName;
+ }
+ 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 setOptional($optional) {
+ $this->optional = $optional;
+ }
+ public function getOptional() {
+ return $this->optional;
+ }
+ public function setOrganizer($organizer) {
+ $this->organizer = $organizer;
+ }
+ public function getOrganizer() {
+ return $this->organizer;
+ }
+ public function setResource($resource) {
+ $this->resource = $resource;
+ }
+ public function getResource() {
+ return $this->resource;
+ }
+ public function setResponseStatus($responseStatus) {
+ $this->responseStatus = $responseStatus;
+ }
+ public function getResponseStatus() {
+ return $this->responseStatus;
+ }
+ public function setSelf($self) {
+ $this->self = $self;
+ }
+ public function getSelf() {
+ return $this->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 getDisplayName() {
+ return $this->displayName;
+ }
+ 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 setSelf($self) {
+ $this->self = $self;
+ }
+ public function getSelf() {
+ return $this->self;
+ }
+}
+
+class Google_Service_Calendar_EventDateTime
+ extends Google_Model {
+ public $date;
+ public $dateTime;
+ public $timeZone;
+ public function setDate($date) {
+ $this->date = $date;
+ }
+ public function getDate() {
+ return $this->date;
+ }
+ public function setDateTime($dateTime) {
+ $this->dateTime = $dateTime;
+ }
+ public function getDateTime() {
+ return $this->dateTime;
+ }
+ public function setTimeZone($timeZone) {
+ $this->timeZone = $timeZone;
+ }
+ public function getTimeZone() {
+ return $this->timeZone;
+ }
+}
+
+class Google_Service_Calendar_EventExtendedProperties
+ extends Google_Model {
+ public $private;
+ public $shared;
+ public function setPrivate($private) {
+ $this->private = $private;
+ }
+ public function getPrivate() {
+ return $this->private;
+ }
+ public function setShared($shared) {
+ $this->shared = $shared;
+ }
+ public function getShared() {
+ return $this->shared;
+ }
+}
+
+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 getDisplay() {
+ return $this->display;
+ }
+ public function setHeight($height) {
+ $this->height = $height;
+ }
+ public function getHeight() {
+ return $this->height;
+ }
+ public function setIconLink($iconLink) {
+ $this->iconLink = $iconLink;
+ }
+ public function getIconLink() {
+ return $this->iconLink;
+ }
+ public function setLink($link) {
+ $this->link = $link;
+ }
+ public function getLink() {
+ return $this->link;
+ }
+ public function setPreferences($preferences) {
+ $this->preferences = $preferences;
+ }
+ public function getPreferences() {
+ return $this->preferences;
+ }
+ 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 setWidth($width) {
+ $this->width = $width;
+ }
+ public function getWidth() {
+ return $this->width;
+ }
+}
+
+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 getDisplayName() {
+ return $this->displayName;
+ }
+ 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 setSelf($self) {
+ $this->self = $self;
+ }
+ public function getSelf() {
+ return $this->self;
+ }
+}
+
+class Google_Service_Calendar_EventReminder
+ extends Google_Model {
+ public $method;
+ public $minutes;
+ public function setMethod($method) {
+ $this->method = $method;
+ }
+ public function getMethod() {
+ return $this->method;
+ }
+ public function setMinutes($minutes) {
+ $this->minutes = $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 $overrides;
+ public $useDefault;
+ public function setOverrides($overrides) {
+ $this->overrides = $overrides;
+ }
+ public function getOverrides() {
+ return $this->overrides;
+ }
+ public function setUseDefault($useDefault) {
+ $this->useDefault = $useDefault;
+ }
+ public function getUseDefault() {
+ return $this->useDefault;
+ }
+}
+
+class Google_Service_Calendar_EventSource
+ extends Google_Model {
+ public $title;
+ public $url;
+ public function setTitle($title) {
+ $this->title = $title;
+ }
+ public function getTitle() {
+ return $this->title;
+ }
+ public function setUrl($url) {
+ $this->url = $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 $defaultReminders;
+ public $description;
+ public $etag;
+ protected $__itemsType = 'Google_Service_Calendar_Event';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $nextPageToken;
+ public $summary;
+ public $timeZone;
+ public $updated;
+ public function setAccessRole($accessRole) {
+ $this->accessRole = $accessRole;
+ }
+ public function getAccessRole() {
+ return $this->accessRole;
+ }
+ public function setDefaultReminders($defaultReminders) {
+ $this->defaultReminders = $defaultReminders;
+ }
+ public function getDefaultReminders() {
+ return $this->defaultReminders;
+ }
+ public function setDescription($description) {
+ $this->description = $description;
+ }
+ public function getDescription() {
+ return $this->description;
+ }
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+ public function setSummary($summary) {
+ $this->summary = $summary;
+ }
+ public function getSummary() {
+ return $this->summary;
+ }
+ public function setTimeZone($timeZone) {
+ $this->timeZone = $timeZone;
+ }
+ public function getTimeZone() {
+ return $this->timeZone;
+ }
+ public function setUpdated($updated) {
+ $this->updated = $updated;
+ }
+ public function getUpdated() {
+ return $this->updated;
+ }
+}
+
+class Google_Service_Calendar_FreeBusyCalendar
+ extends Google_Collection {
+ protected $__busyType = 'Google_Service_Calendar_TimePeriod';
+ protected $__busyDataType = 'array';
+ public $busy;
+ protected $__errorsType = 'Google_Service_Calendar_Error';
+ protected $__errorsDataType = 'array';
+ public $errors;
+ public function setBusy($busy) {
+ $this->busy = $busy;
+ }
+ public function getBusy() {
+ return $this->busy;
+ }
+ public function setErrors($errors) {
+ $this->errors = $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';
+ public $errors;
+ public function setCalendars($calendars) {
+ $this->calendars = $calendars;
+ }
+ public function getCalendars() {
+ return $this->calendars;
+ }
+ public function setErrors($errors) {
+ $this->errors = $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 $items;
+ public $timeMax;
+ public $timeMin;
+ public $timeZone;
+ public function setCalendarExpansionMax($calendarExpansionMax) {
+ $this->calendarExpansionMax = $calendarExpansionMax;
+ }
+ public function getCalendarExpansionMax() {
+ return $this->calendarExpansionMax;
+ }
+ public function setGroupExpansionMax($groupExpansionMax) {
+ $this->groupExpansionMax = $groupExpansionMax;
+ }
+ public function getGroupExpansionMax() {
+ return $this->groupExpansionMax;
+ }
+ public function setItems($items) {
+ $this->items = $items;
+ }
+ public function getItems() {
+ return $this->items;
+ }
+ public function setTimeMax($timeMax) {
+ $this->timeMax = $timeMax;
+ }
+ public function getTimeMax() {
+ return $this->timeMax;
+ }
+ public function setTimeMin($timeMin) {
+ $this->timeMin = $timeMin;
+ }
+ public function getTimeMin() {
+ return $this->timeMin;
+ }
+ public function setTimeZone($timeZone) {
+ $this->timeZone = $timeZone;
+ }
+ public function getTimeZone() {
+ return $this->timeZone;
+ }
+}
+
+class Google_Service_Calendar_FreeBusyRequestItem
+ extends Google_Model {
+ public $id;
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+}
+
+class Google_Service_Calendar_FreeBusyResponse
+ extends Google_Model {
+ protected $__calendarsType = 'Google_Service_Calendar_FreeBusyCalendar';
+ protected $__calendarsDataType = 'map';
+ public $calendars;
+ protected $__groupsType = 'Google_Service_Calendar_FreeBusyGroup';
+ protected $__groupsDataType = 'map';
+ public $groups;
+ public $kind;
+ public $timeMax;
+ public $timeMin;
+ public function setCalendars(Google_Service_Calendar_FreeBusyCalendar$calendars) {
+ $this->calendars = $calendars;
+ }
+ public function getCalendars() {
+ return $this->calendars;
+ }
+ public function setGroups(Google_Service_Calendar_FreeBusyGroup$groups) {
+ $this->groups = $groups;
+ }
+ public function getGroups() {
+ return $this->groups;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setTimeMax($timeMax) {
+ $this->timeMax = $timeMax;
+ }
+ public function getTimeMax() {
+ return $this->timeMax;
+ }
+ public function setTimeMin($timeMin) {
+ $this->timeMin = $timeMin;
+ }
+ public function getTimeMin() {
+ return $this->timeMin;
+ }
+}
+
+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 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 setValue($value) {
+ $this->value = $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 $items;
+ 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_Calendar_TimePeriod
+ extends Google_Model {
+ public $end;
+ public $start;
+ public function setEnd($end) {
+ $this->end = $end;
+ }
+ public function getEnd() {
+ return $this->end;
+ }
+ public function setStart($start) {
+ $this->start = $start;
+ }
+ public function getStart() {
+ return $this->start;
+ }
+}
diff --git a/src/Google/Service/Compute.php b/src/Google/Service/Compute.php
new file mode 100644
index 0000000..e4d8276
--- /dev/null
+++ b/src/Google/Service/Compute.php
@@ -0,0 +1,3024 @@
+
+ * API for the Google Compute Engine service.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Compute extends Google_Service { + public $disks; + public $firewalls; + public $globalOperations; + public $images; + public $instances; + public $kernels; + public $machineTypes; + public $networks; + public $projects; + public $snapshots; + public $zoneOperations; + public $zones; + /** + * Constructs the internal representation of the Compute service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'compute/v1beta14/projects/'; + $this->version = 'v1beta14'; + $this->serviceName = 'compute'; + + $client->addService($this->serviceName, $this->version); + $this->disks = new Google_Service_Compute_Disks_Resource($this, $this->serviceName, 'disks', json_decode('{"methods": {"delete": {"id": "compute.disks.delete", "path": "{project}/zones/{zone}/disks/{disk}", "httpMethod": "DELETE", "parameters": {"disk": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.disks.get", "path": "{project}/zones/{zone}/disks/{disk}", "httpMethod": "GET", "parameters": {"disk": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Disk"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "insert": {"id": "compute.disks.insert", "path": "{project}/zones/{zone}/disks", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "sourceImage": {"type": "string", "location": "query"}, "zone": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Disk"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "list": {"id": "compute.disks.list", "path": "{project}/zones/{zone}/disks", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "DiskList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true)); + $this->firewalls = new Google_Service_Compute_Firewalls_Resource($this, $this->serviceName, 'firewalls', json_decode('{"methods": {"delete": {"id": "compute.firewalls.delete", "path": "{project}/global/firewalls/{firewall}", "httpMethod": "DELETE", "parameters": {"firewall": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.firewalls.get", "path": "{project}/global/firewalls/{firewall}", "httpMethod": "GET", "parameters": {"firewall": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Firewall"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "insert": {"id": "compute.firewalls.insert", "path": "{project}/global/firewalls", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Firewall"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "list": {"id": "compute.firewalls.list", "path": "{project}/global/firewalls", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "FirewallList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "patch": {"id": "compute.firewalls.patch", "path": "{project}/global/firewalls/{firewall}", "httpMethod": "PATCH", "parameters": {"firewall": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Firewall"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "update": {"id": "compute.firewalls.update", "path": "{project}/global/firewalls/{firewall}", "httpMethod": "PUT", "parameters": {"firewall": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Firewall"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}}}', true)); + $this->globalOperations = new Google_Service_Compute_GlobalOperations_Resource($this, $this->serviceName, 'globalOperations', json_decode('{"methods": {"delete": {"id": "compute.globalOperations.delete", "path": "{project}/global/operations/{operation}", "httpMethod": "DELETE", "parameters": {"operation": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.globalOperations.get", "path": "{project}/global/operations/{operation}", "httpMethod": "GET", "parameters": {"operation": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "list": {"id": "compute.globalOperations.list", "path": "{project}/global/operations", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "OperationList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true)); + $this->images = new Google_Service_Compute_Images_Resource($this, $this->serviceName, 'images', json_decode('{"methods": {"delete": {"id": "compute.images.delete", "path": "{project}/global/images/{image}", "httpMethod": "DELETE", "parameters": {"image": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "deprecate": {"id": "compute.images.deprecate", "path": "{project}/global/images/{image}/deprecate", "httpMethod": "POST", "parameters": {"image": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "DeprecationStatus"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.images.get", "path": "{project}/global/images/{image}", "httpMethod": "GET", "parameters": {"image": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Image"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "insert": {"id": "compute.images.insert", "path": "{project}/global/images", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Image"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/devstorage.read_only"]}, "list": {"id": "compute.images.list", "path": "{project}/global/images", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ImageList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true)); + $this->instances = new Google_Service_Compute_Instances_Resource($this, $this->serviceName, 'instances', json_decode('{"methods": {"addAccessConfig": {"id": "compute.instances.addAccessConfig", "path": "{project}/zones/{zone}/instances/{instance}/addAccessConfig", "httpMethod": "POST", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "network_interface": {"type": "string", "required": true, "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AccessConfig"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "attachDisk": {"id": "compute.instances.attachDisk", "path": "{project}/zones/{zone}/instances/{instance}/attachDisk", "httpMethod": "POST", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "AttachedDisk"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "delete": {"id": "compute.instances.delete", "path": "{project}/zones/{zone}/instances/{instance}", "httpMethod": "DELETE", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "deleteAccessConfig": {"id": "compute.instances.deleteAccessConfig", "path": "{project}/zones/{zone}/instances/{instance}/deleteAccessConfig", "httpMethod": "POST", "parameters": {"access_config": {"type": "string", "required": true, "location": "query"}, "instance": {"type": "string", "required": true, "location": "path"}, "network_interface": {"type": "string", "required": true, "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "detachDisk": {"id": "compute.instances.detachDisk", "path": "{project}/zones/{zone}/instances/{instance}/detachDisk", "httpMethod": "POST", "parameters": {"deviceName": {"type": "string", "required": true, "location": "query"}, "instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.instances.get", "path": "{project}/zones/{zone}/instances/{instance}", "httpMethod": "GET", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Instance"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "getSerialPortOutput": {"id": "compute.instances.getSerialPortOutput", "path": "{project}/zones/{zone}/instances/{instance}/serialPort", "httpMethod": "GET", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "SerialPortOutput"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "insert": {"id": "compute.instances.insert", "path": "{project}/zones/{zone}/instances", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Instance"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "list": {"id": "compute.instances.list", "path": "{project}/zones/{zone}/instances", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "InstanceList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "setMetadata": {"id": "compute.instances.setMetadata", "path": "{project}/zones/{zone}/instances/{instance}/setMetadata", "httpMethod": "POST", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Metadata"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "setTags": {"id": "compute.instances.setTags", "path": "{project}/zones/{zone}/instances/{instance}/setTags", "httpMethod": "POST", "parameters": {"instance": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Tags"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}}}', true)); + $this->kernels = new Google_Service_Compute_Kernels_Resource($this, $this->serviceName, 'kernels', json_decode('{"methods": {"get": {"id": "compute.kernels.get", "path": "{project}/global/kernels/{kernel}", "httpMethod": "GET", "parameters": {"kernel": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Kernel"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "list": {"id": "compute.kernels.list", "path": "{project}/global/kernels", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "KernelList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true)); + $this->machineTypes = new Google_Service_Compute_MachineTypes_Resource($this, $this->serviceName, 'machineTypes', json_decode('{"methods": {"get": {"id": "compute.machineTypes.get", "path": "{project}/global/machineTypes/{machineType}", "httpMethod": "GET", "parameters": {"machineType": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "MachineType"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "list": {"id": "compute.machineTypes.list", "path": "{project}/global/machineTypes", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "MachineTypeList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true)); + $this->networks = new Google_Service_Compute_Networks_Resource($this, $this->serviceName, 'networks', json_decode('{"methods": {"delete": {"id": "compute.networks.delete", "path": "{project}/global/networks/{network}", "httpMethod": "DELETE", "parameters": {"network": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.networks.get", "path": "{project}/global/networks/{network}", "httpMethod": "GET", "parameters": {"network": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Network"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "insert": {"id": "compute.networks.insert", "path": "{project}/global/networks", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Network"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "list": {"id": "compute.networks.list", "path": "{project}/global/networks", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "NetworkList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true)); + $this->projects = new Google_Service_Compute_Projects_Resource($this, $this->serviceName, 'projects', json_decode('{"methods": {"get": {"id": "compute.projects.get", "path": "{project}", "httpMethod": "GET", "parameters": {"project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Project"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "setCommonInstanceMetadata": {"id": "compute.projects.setCommonInstanceMetadata", "path": "{project}/setCommonInstanceMetadata", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Metadata"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}}}', true)); + $this->snapshots = new Google_Service_Compute_Snapshots_Resource($this, $this->serviceName, 'snapshots', json_decode('{"methods": {"delete": {"id": "compute.snapshots.delete", "path": "{project}/global/snapshots/{snapshot}", "httpMethod": "DELETE", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "snapshot": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.snapshots.get", "path": "{project}/global/snapshots/{snapshot}", "httpMethod": "GET", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "snapshot": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Snapshot"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "insert": {"id": "compute.snapshots.insert", "path": "{project}/global/snapshots", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Snapshot"}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "list": {"id": "compute.snapshots.list", "path": "{project}/global/snapshots", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "SnapshotList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true)); + $this->zoneOperations = new Google_Service_Compute_ZoneOperations_Resource($this, $this->serviceName, 'zoneOperations', json_decode('{"methods": {"delete": {"id": "compute.zoneOperations.delete", "path": "{project}/zones/{zone}/operations/{operation}", "httpMethod": "DELETE", "parameters": {"operation": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/compute"]}, "get": {"id": "compute.zoneOperations.get", "path": "{project}/zones/{zone}/operations/{operation}", "httpMethod": "GET", "parameters": {"operation": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Operation"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "list": {"id": "compute.zoneOperations.list", "path": "{project}/zones/{zone}/operations", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "OperationList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true)); + $this->zones = new Google_Service_Compute_Zones_Resource($this, $this->serviceName, 'zones', json_decode('{"methods": {"get": {"id": "compute.zones.get", "path": "{project}/zones/{zone}", "httpMethod": "GET", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "zone": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Zone"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}, "list": {"id": "compute.zones.list", "path": "{project}/zones", "httpMethod": "GET", "parameters": {"filter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ZoneList"}, "scopes": ["https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"]}}}', true)); + + } +} + + + /** + * The "disks" collection of methods. + * Typical usage is: + *
+ * $computeService = new Google_ComputeService(...);
+ * $disks = $computeService->disks;
+ *
+ */
+ class Google_Service_Compute_Disks_Resource extends Google_Service_Resource {
+
+
+ /**
+ * 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);
+ $data = $this->__call('delete', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Disk($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the list of persistent disk resources contained within the specified zone. (disks.list)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $zone Name of the zone scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
+ * @return Google_Service_Compute_DiskList
+ */
+ public function listDisks($project, $zone, $optParams = array()) {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_DiskList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "firewalls" collection of methods.
+ * Typical usage is:
+ *
+ * $computeService = new Google_ComputeService(...);
+ * $firewalls = $computeService->firewalls;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Firewall($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Creates a firewall resource in the specified project using the data included in the request.
+ * (firewalls.insert)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param Google_Firewall $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the list of firewall resources available to the specified project. (firewalls.list)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
+ * @return Google_Service_Compute_FirewallList
+ */
+ public function listFirewalls($project, $optParams = array()) {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_FirewallList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Updates the specified firewall resource with the data included in the request. This method
+ * supports patch semantics. (firewalls.patch)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $firewall Name of the firewall resource to update.
+ * @param Google_Firewall $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "globalOperations" collection of methods.
+ * Typical usage is:
+ *
+ * $computeService = new Google_ComputeService(...);
+ * $globalOperations = $computeService->globalOperations;
+ *
+ */
+ class Google_Service_Compute_GlobalOperations_Resource extends Google_Service_Resource {
+
+
+ /**
+ * 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the list of operation resources contained within the specified project.
+ * (globalOperations.list)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
+ * @return Google_Service_Compute_OperationList
+ */
+ public function listGlobalOperations($project, $optParams = array()) {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_OperationList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "images" collection of methods.
+ * Typical usage is:
+ *
+ * $computeService = new Google_ComputeService(...);
+ * $images = $computeService->images;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Sets the deprecation status of an image. If no message body is given, clears the deprecation
+ * status instead. (images.deprecate)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $image Image name.
+ * @param Google_DeprecationStatus $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('deprecate', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Image($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the list of image resources available to the specified project. (images.list)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
+ * @return Google_Service_Compute_ImageList
+ */
+ public function listImages($project, $optParams = array()) {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_ImageList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "instances" collection of methods.
+ * Typical usage is:
+ *
+ * $computeService = new Google_ComputeService(...);
+ * $instances = $computeService->instances;
+ *
+ */
+ 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 $network_interface Network interface name.
+ * @param Google_AccessConfig $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function addAccessConfig($project, $zone, $instance, $network_interface, Google_Service_Compute_AccessConfig $postBody, $optParams = array()) {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'network_interface' => $network_interface, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('addAccessConfig', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Attaches a disk resource to an instance. (instances.attachDisk)
+ *
+ * @param string $project Project name.
+ * @param string $zone Name of the zone scoping this request.
+ * @param string $instance Instance name.
+ * @param Google_AttachedDisk $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('attachDisk', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('delete', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Deletes an access config from an instance's network interface. (instances.deleteAccessConfig)
+ *
+ * @param string $project Project name.
+ * @param string $zone Name of the zone scoping this request.
+ * @param string $instance Instance name.
+ * @param string $access_config Access config name.
+ * @param string $network_interface Network interface name.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function deleteAccessConfig($project, $zone, $instance, $access_config, $network_interface, $optParams = array()) {
+ $params = array('project' => $project, 'zone' => $zone, 'instance' => $instance, 'access_config' => $access_config, 'network_interface' => $network_interface);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('deleteAccessConfig', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Detaches a disk from an instance. (instances.detachDisk)
+ *
+ * @param string $project Project name.
+ * @param string $zone Name of the zone scoping this request.
+ * @param string $instance Instance name.
+ * @param string $deviceName Disk device name to detach.
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('detachDisk', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Instance($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('getSerialPortOutput', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_SerialPortOutput($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Creates an instance resource in the specified project using the data included in the request.
+ * (instances.insert)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $zone Name of the zone scoping this request.
+ * @param Google_Instance $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the list of instance resources contained within the specified zone. (instances.list)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $zone Name of the zone scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
+ * @return Google_Service_Compute_InstanceList
+ */
+ public function listInstances($project, $zone, $optParams = array()) {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_InstanceList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Sets metadata for the specified instance to the data included in the request.
+ * (instances.setMetadata)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $zone Name of the zone scoping this request.
+ * @param string $instance Name of the instance scoping this request.
+ * @param Google_Metadata $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('setMetadata', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Sets tags for the specified instance to the data included in the request. (instances.setTags)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $zone Name of the zone scoping this request.
+ * @param string $instance Name of the instance scoping this request.
+ * @param Google_Tags $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('setTags', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "kernels" collection of methods.
+ * Typical usage is:
+ *
+ * $computeService = new Google_ComputeService(...);
+ * $kernels = $computeService->kernels;
+ *
+ */
+ class Google_Service_Compute_Kernels_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Returns the specified kernel resource. (kernels.get)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $kernel Name of the kernel resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Kernel
+ */
+ public function get($project, $kernel, $optParams = array()) {
+ $params = array('project' => $project, 'kernel' => $kernel);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Kernel($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the list of kernel resources available to the specified project. (kernels.list)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
+ * @return Google_Service_Compute_KernelList
+ */
+ public function listKernels($project, $optParams = array()) {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_KernelList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "machineTypes" collection of methods.
+ * Typical usage is:
+ *
+ * $computeService = new Google_ComputeService(...);
+ * $machineTypes = $computeService->machineTypes;
+ *
+ */
+ class Google_Service_Compute_MachineTypes_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Returns the specified machine type resource. (machineTypes.get)
+ *
+ * @param string $project Name of the project 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, $machineType, $optParams = array()) {
+ $params = array('project' => $project, 'machineType' => $machineType);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_MachineType($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the list of machine type resources available to the specified project.
+ * (machineTypes.list)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
+ * @return Google_Service_Compute_MachineTypeList
+ */
+ public function listMachineTypes($project, $optParams = array()) {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_MachineTypeList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "networks" collection of methods.
+ * Typical usage is:
+ *
+ * $computeService = new Google_ComputeService(...);
+ * $networks = $computeService->networks;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Returns the specified network resource. (networks.get)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $network Name of the network resource to return.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Network
+ */
+ public function get($project, $network, $optParams = array()) {
+ $params = array('project' => $project, 'network' => $network);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Network($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the list of network resources available to the specified project. (networks.list)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
+ * @return Google_Service_Compute_NetworkList
+ */
+ public function listNetworks($project, $optParams = array()) {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_NetworkList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "projects" collection of methods.
+ * Typical usage is:
+ *
+ * $computeService = new Google_ComputeService(...);
+ * $projects = $computeService->projects;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Project($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Sets metadata common to all instances within the specified project using the data included in the
+ * request. (projects.setCommonInstanceMetadata)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param Google_Metadata $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('setCommonInstanceMetadata', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "snapshots" collection of methods.
+ * Typical usage is:
+ *
+ * $computeService = new Google_ComputeService(...);
+ * $snapshots = $computeService->snapshots;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Snapshot($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Creates a persistent disk snapshot resource in the specified project using the data included in
+ * the request. (snapshots.insert)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param Google_Snapshot $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Compute_Operation
+ */
+ public function insert($project, Google_Service_Compute_Snapshot $postBody, $optParams = array()) {
+ $params = array('project' => $project, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the list of persistent disk snapshot resources contained within the specified project.
+ * (snapshots.list)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
+ * @return Google_Service_Compute_SnapshotList
+ */
+ public function listSnapshots($project, $optParams = array()) {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_SnapshotList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "zoneOperations" collection of methods.
+ * Typical usage is:
+ *
+ * $computeService = new Google_ComputeService(...);
+ * $zoneOperations = $computeService->zoneOperations;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Operation($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the list of operation resources contained within the specified zone.
+ * (zoneOperations.list)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param string $zone Name of the zone scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
+ * @return Google_Service_Compute_OperationList
+ */
+ public function listZoneOperations($project, $zone, $optParams = array()) {
+ $params = array('project' => $project, 'zone' => $zone);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_OperationList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "zones" collection of methods.
+ * Typical usage is:
+ *
+ * $computeService = new Google_ComputeService(...);
+ * $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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_Zone($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the list of zone resources available to the specified project. (zones.list)
+ *
+ * @param string $project Name of the project scoping this request.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string filter Optional. Filter expression for filtering listed resources.
+ * @opt_param string maxResults Optional. Maximum count of results to be returned. Maximum and default value is 100.
+ * @opt_param string pageToken Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
+ * @return Google_Service_Compute_ZoneList
+ */
+ public function listZones($project, $optParams = array()) {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Compute_ZoneList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+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_AttachedDisk
+ extends Google_Model {
+ public $boot;
+ public $deviceName;
+ public $index;
+ public $kind;
+ public $mode;
+ public $source;
+ public $type;
+ 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 setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ 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_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_Model {
+ public $creationTimestamp;
+ public $description;
+ public $id;
+ public $kind;
+ public $name;
+ public $options;
+ public $selfLink;
+ public $sizeGb;
+ public $sourceSnapshot;
+ public $sourceSnapshotId;
+ public $status;
+ 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 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 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 setZone($zone) {
+ $this->zone = $zone;
+ }
+ public function getZone() {
+ return $this->zone;
+ }
+}
+
+class Google_Service_Compute_DiskList
+ extends Google_Collection {
+ public $id;
+ protected $__itemsType = 'Google_Service_Compute_Disk';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_Firewall
+ extends Google_Collection {
+ protected $__allowedType = 'Google_Service_Compute_FirewallAllowed';
+ protected $__allowedDataType = 'array';
+ public $allowed;
+ 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 $items;
+ 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_Model {
+ public $creationTimestamp;
+ protected $__deprecatedType = 'Google_Service_Compute_DeprecationStatus';
+ protected $__deprecatedDataType = '';
+ public $deprecated;
+ public $description;
+ public $id;
+ public $kind;
+ public $name;
+ public $preferredKernel;
+ protected $__rawDiskType = 'Google_Service_Compute_ImageRawDisk';
+ protected $__rawDiskDataType = '';
+ public $rawDisk;
+ public $selfLink;
+ public $sourceType;
+ 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 setPreferredKernel($preferredKernel) {
+ $this->preferredKernel = $preferredKernel;
+ }
+ public function getPreferredKernel() {
+ return $this->preferredKernel;
+ }
+ 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 setSourceType($sourceType) {
+ $this->sourceType = $sourceType;
+ }
+ public function getSourceType() {
+ return $this->sourceType;
+ }
+}
+
+class Google_Service_Compute_ImageList
+ extends Google_Collection {
+ public $id;
+ protected $__itemsType = 'Google_Service_Compute_Image';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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 $disks;
+ public $id;
+ public $image;
+ public $kernel;
+ public $kind;
+ public $machineType;
+ protected $__metadataType = 'Google_Service_Compute_Metadata';
+ protected $__metadataDataType = '';
+ public $metadata;
+ public $name;
+ protected $__networkInterfacesType = 'Google_Service_Compute_NetworkInterface';
+ protected $__networkInterfacesDataType = 'array';
+ public $networkInterfaces;
+ public $selfLink;
+ protected $__serviceAccountsType = 'Google_Service_Compute_ServiceAccount';
+ protected $__serviceAccountsDataType = 'array';
+ public $serviceAccounts;
+ public $status;
+ public $statusMessage;
+ protected $__tagsType = 'Google_Service_Compute_Tags';
+ protected $__tagsDataType = '';
+ public $tags;
+ 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 setImage($image) {
+ $this->image = $image;
+ }
+ public function getImage() {
+ return $this->image;
+ }
+ public function setKernel($kernel) {
+ $this->kernel = $kernel;
+ }
+ public function getKernel() {
+ return $this->kernel;
+ }
+ 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 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_InstanceList
+ extends Google_Collection {
+ public $id;
+ protected $__itemsType = 'Google_Service_Compute_Instance';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_Kernel
+ extends Google_Model {
+ public $creationTimestamp;
+ protected $__deprecatedType = 'Google_Service_Compute_DeprecationStatus';
+ protected $__deprecatedDataType = '';
+ public $deprecated;
+ public $description;
+ public $id;
+ public $kind;
+ public $name;
+ public $selfLink;
+ 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;
+ }
+}
+
+class Google_Service_Compute_KernelList
+ extends Google_Collection {
+ public $id;
+ protected $__itemsType = 'Google_Service_Compute_Kernel';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_MachineType
+ extends Google_Collection {
+ public $availableZone;
+ public $creationTimestamp;
+ protected $__deprecatedType = 'Google_Service_Compute_DeprecationStatus';
+ protected $__deprecatedDataType = '';
+ public $deprecated;
+ public $description;
+ protected $__ephemeralDisksType = 'Google_Service_Compute_MachineTypeEphemeralDisks';
+ protected $__ephemeralDisksDataType = 'array';
+ public $ephemeralDisks;
+ public $guestCpus;
+ public $id;
+ public $imageSpaceGb;
+ public $kind;
+ public $maximumPersistentDisks;
+ public $maximumPersistentDisksSizeGb;
+ public $memoryMb;
+ public $name;
+ public $selfLink;
+ public function setAvailableZone($availableZone) {
+ $this->availableZone = $availableZone;
+ }
+ public function getAvailableZone() {
+ return $this->availableZone;
+ }
+ 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 setEphemeralDisks($ephemeralDisks) {
+ $this->ephemeralDisks = $ephemeralDisks;
+ }
+ public function getEphemeralDisks() {
+ return $this->ephemeralDisks;
+ }
+ 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 setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_Compute_MachineTypeEphemeralDisks
+ extends Google_Model {
+ public $diskGb;
+ public function setDiskGb($diskGb) {
+ $this->diskGb = $diskGb;
+ }
+ public function getDiskGb() {
+ return $this->diskGb;
+ }
+}
+
+class Google_Service_Compute_MachineTypeList
+ extends Google_Collection {
+ public $id;
+ protected $__itemsType = 'Google_Service_Compute_MachineType';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_Metadata
+ extends Google_Collection {
+ public $fingerprint;
+ protected $__itemsType = 'Google_Service_Compute_MetadataItems';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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 $accessConfigs;
+ 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 $items;
+ 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 $error;
+ public $httpErrorMessage;
+ public $httpErrorStatusCode;
+ public $id;
+ public $insertTime;
+ public $kind;
+ public $name;
+ public $operationType;
+ public $progress;
+ public $selfLink;
+ public $startTime;
+ public $status;
+ public $statusMessage;
+ public $targetId;
+ public $targetLink;
+ public $user;
+ protected $__warningsType = 'Google_Service_Compute_OperationWarnings';
+ protected $__warningsDataType = 'array';
+ public $warnings;
+ 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 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_OperationError
+ extends Google_Collection {
+ protected $__errorsType = 'Google_Service_Compute_OperationErrorErrors';
+ protected $__errorsDataType = 'array';
+ public $errors;
+ 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 $items;
+ 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 $data;
+ 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_Project
+ extends Google_Collection {
+ protected $__commonInstanceMetadataType = 'Google_Service_Compute_Metadata';
+ protected $__commonInstanceMetadataDataType = '';
+ public $commonInstanceMetadata;
+ public $creationTimestamp;
+ public $description;
+ public $externalIpAddresses;
+ public $id;
+ public $kind;
+ public $name;
+ protected $__quotasType = 'Google_Service_Compute_Quota';
+ protected $__quotasDataType = 'array';
+ public $quotas;
+ public $selfLink;
+ 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 setExternalIpAddresses($externalIpAddresses) {
+ $this->externalIpAddresses = $externalIpAddresses;
+ }
+ public function getExternalIpAddresses() {
+ return $this->externalIpAddresses;
+ }
+ 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;
+ }
+}
+
+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_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_Model {
+ public $creationTimestamp;
+ public $description;
+ public $diskSizeGb;
+ public $id;
+ public $kind;
+ public $name;
+ public $selfLink;
+ public $sourceDisk;
+ public $sourceDiskId;
+ public $status;
+ 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 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;
+ }
+}
+
+class Google_Service_Compute_SnapshotList
+ extends Google_Collection {
+ public $id;
+ protected $__itemsType = 'Google_Service_Compute_Snapshot';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_Zone
+ extends Google_Collection {
+ public $availableMachineType;
+ public $creationTimestamp;
+ protected $__deprecatedType = 'Google_Service_Compute_DeprecationStatus';
+ protected $__deprecatedDataType = '';
+ public $deprecated;
+ public $description;
+ public $id;
+ public $kind;
+ protected $__maintenanceWindowsType = 'Google_Service_Compute_ZoneMaintenanceWindows';
+ protected $__maintenanceWindowsDataType = 'array';
+ public $maintenanceWindows;
+ public $name;
+ protected $__quotasType = 'Google_Service_Compute_Quota';
+ protected $__quotasDataType = 'array';
+ public $quotas;
+ public $selfLink;
+ public $status;
+ public function setAvailableMachineType($availableMachineType) {
+ $this->availableMachineType = $availableMachineType;
+ }
+ public function getAvailableMachineType() {
+ return $this->availableMachineType;
+ }
+ 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 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;
+ }
+}
+
+class Google_Service_Compute_ZoneList
+ extends Google_Collection {
+ public $id;
+ protected $__itemsType = 'Google_Service_Compute_Zone';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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/src/Google/Service/Customsearch.php b/src/Google/Service/Customsearch.php
new file mode 100644
index 0000000..64cc85e
--- /dev/null
+++ b/src/Google/Service/Customsearch.php
@@ -0,0 +1,847 @@
+
+ * Lets you search over a website or collection of websites
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Customsearch extends Google_Service { + public $cse; + /** + * Constructs the internal representation of the Customsearch service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'customsearch/'; + $this->version = 'v1'; + $this->serviceName = 'customsearch'; + + $client->addService($this->serviceName, $this->version); + $this->cse = new Google_Service_Customsearch_Cse_Resource($this, $this->serviceName, 'cse', json_decode('{"methods": {"list": {"id": "search.cse.list", "path": "v1", "httpMethod": "GET", "parameters": {"c2coff": {"type": "string", "location": "query"}, "cr": {"type": "string", "location": "query"}, "cref": {"type": "string", "location": "query"}, "cx": {"type": "string", "location": "query"}, "dateRestrict": {"type": "string", "location": "query"}, "exactTerms": {"type": "string", "location": "query"}, "excludeTerms": {"type": "string", "location": "query"}, "fileType": {"type": "string", "location": "query"}, "filter": {"type": "string", "enum": ["0", "1"], "location": "query"}, "gl": {"type": "string", "location": "query"}, "googlehost": {"type": "string", "location": "query"}, "highRange": {"type": "string", "location": "query"}, "hl": {"type": "string", "location": "query"}, "hq": {"type": "string", "location": "query"}, "imgColorType": {"type": "string", "enum": ["color", "gray", "mono"], "location": "query"}, "imgDominantColor": {"type": "string", "enum": ["black", "blue", "brown", "gray", "green", "pink", "purple", "teal", "white", "yellow"], "location": "query"}, "imgSize": {"type": "string", "enum": ["huge", "icon", "large", "medium", "small", "xlarge", "xxlarge"], "location": "query"}, "imgType": {"type": "string", "enum": ["clipart", "face", "lineart", "news", "photo"], "location": "query"}, "linkSite": {"type": "string", "location": "query"}, "lowRange": {"type": "string", "location": "query"}, "lr": {"type": "string", "enum": ["lang_ar", "lang_bg", "lang_ca", "lang_cs", "lang_da", "lang_de", "lang_el", "lang_en", "lang_es", "lang_et", "lang_fi", "lang_fr", "lang_hr", "lang_hu", "lang_id", "lang_is", "lang_it", "lang_iw", "lang_ja", "lang_ko", "lang_lt", "lang_lv", "lang_nl", "lang_no", "lang_pl", "lang_pt", "lang_ro", "lang_ru", "lang_sk", "lang_sl", "lang_sr", "lang_sv", "lang_tr", "lang_zh-CN", "lang_zh-TW"], "location": "query"}, "num": {"type": "integer", "default": "10", "format": "uint32", "location": "query"}, "orTerms": {"type": "string", "location": "query"}, "q": {"type": "string", "required": true, "location": "query"}, "relatedSite": {"type": "string", "location": "query"}, "rights": {"type": "string", "location": "query"}, "safe": {"type": "string", "default": "off", "enum": ["high", "medium", "off"], "location": "query"}, "searchType": {"type": "string", "enum": ["image"], "location": "query"}, "siteSearch": {"type": "string", "location": "query"}, "siteSearchFilter": {"type": "string", "enum": ["e", "i"], "location": "query"}, "sort": {"type": "string", "location": "query"}, "start": {"type": "integer", "format": "uint32", "location": "query"}}, "response": {"$ref": "Search"}}}}', true)); + + } +} + + + /** + * The "cse" collection of methods. + * Typical usage is: + *
+ * $customsearchService = new Google_CustomsearchService(...);
+ * $cse = $customsearchService->cse;
+ *
+ */
+ 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.list)
+ *
+ * @param string $q Query
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string c2coff Turns off the translation between zh-CN and zh-TW.
+ * @opt_param string cr Country restrict(s).
+ * @opt_param string cref The URL of a linked custom search engine
+ * @opt_param string cx The custom search engine ID to scope this search query
+ * @opt_param string dateRestrict Specifies all search results are from a time period
+ * @opt_param string exactTerms Identifies a phrase that all documents in the search results must contain
+ * @opt_param string excludeTerms Identifies a word or phrase that should not appear in any documents in the search results
+ * @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 filter Controls turning on or off the duplicate content filter.
+ * @opt_param string gl Geolocation of end user.
+ * @opt_param string googlehost The local Google domain to use to perform the search.
+ * @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 hl Sets the user interface language.
+ * @opt_param string hq Appends the extra query terms to the query.
+ * @opt_param string imgColorType Returns black and white, grayscale, or color images: mono, gray, and color.
+ * @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 imgSize Returns images of a specified size, where size can be one of: icon, small, medium, large, xlarge, xxlarge, and huge.
+ * @opt_param string imgType Returns images of a type, which can be one of: clipart, face, lineart, news, and photo.
+ * @opt_param string linkSite Specifies that all search results should contain a link to a particular URL
+ * @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 lr The language restriction for the search results
+ * @opt_param string num Number of search results to return
+ * @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 relatedSite Specifies that all search results should be pages that are related to the specified URL
+ * @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 safe Search safety level
+ * @opt_param string searchType Specifies the search type: image.
+ * @opt_param string siteSearch Specifies all search results should be pages from a given site
+ * @opt_param string siteSearchFilter Controls whether to include or exclude results from the site named in the as_sitesearch parameter
+ * @opt_param string sort The sort expression to apply to the results
+ * @opt_param string start The index of the first result to return
+ * @return Google_Service_Customsearch_Search
+ */
+ public function listCse($q, $optParams = array()) {
+ $params = array('q' => $q);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Customsearch_Search($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Customsearch_Context
+ extends Google_Collection {
+ protected $__facetsType = 'Google_Service_Customsearch_ContextFacets';
+ protected $__facetsDataType = 'array';
+ public $facets;
+ public $title;
+ public function setFacets($facets) {
+ $this->facets = $facets;
+ }
+ public function getFacets() {
+ return $this->facets;
+ }
+ public function setTitle($title) {
+ $this->title = $title;
+ }
+ public function getTitle() {
+ return $this->title;
+ }
+}
+
+class Google_Service_Customsearch_ContextFacets
+ extends Google_Model {
+ public $anchor;
+ public $label;
+ public function setAnchor($anchor) {
+ $this->anchor = $anchor;
+ }
+ public function getAnchor() {
+ return $this->anchor;
+ }
+ public function setLabel($label) {
+ $this->label = $label;
+ }
+ public function getLabel() {
+ return $this->label;
+ }
+}
+
+class Google_Service_Customsearch_Promotion
+ extends Google_Collection {
+ protected $__bodyLinesType = 'Google_Service_Customsearch_PromotionBodyLines';
+ protected $__bodyLinesDataType = 'array';
+ public $bodyLines;
+ public $displayLink;
+ public $htmlTitle;
+ protected $__imageType = 'Google_Service_Customsearch_PromotionImage';
+ protected $__imageDataType = '';
+ public $image;
+ public $link;
+ public $title;
+ public function setBodyLines($bodyLines) {
+ $this->bodyLines = $bodyLines;
+ }
+ public function getBodyLines() {
+ return $this->bodyLines;
+ }
+ public function setDisplayLink($displayLink) {
+ $this->displayLink = $displayLink;
+ }
+ public function getDisplayLink() {
+ return $this->displayLink;
+ }
+ public function setHtmlTitle($htmlTitle) {
+ $this->htmlTitle = $htmlTitle;
+ }
+ public function getHtmlTitle() {
+ return $this->htmlTitle;
+ }
+ public function setImage(Google_Service_Customsearch_PromotionImage$image) {
+ $this->image = $image;
+ }
+ public function getImage() {
+ return $this->image;
+ }
+ public function setLink($link) {
+ $this->link = $link;
+ }
+ public function getLink() {
+ return $this->link;
+ }
+ public function setTitle($title) {
+ $this->title = $title;
+ }
+ public function getTitle() {
+ return $this->title;
+ }
+}
+
+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 getHtmlTitle() {
+ return $this->htmlTitle;
+ }
+ public function setLink($link) {
+ $this->link = $link;
+ }
+ public function getLink() {
+ return $this->link;
+ }
+ public function setTitle($title) {
+ $this->title = $title;
+ }
+ public function getTitle() {
+ return $this->title;
+ }
+ public function setUrl($url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
+
+class Google_Service_Customsearch_PromotionImage
+ extends Google_Model {
+ public $height;
+ public $source;
+ public $width;
+ public function setHeight($height) {
+ $this->height = $height;
+ }
+ public function getHeight() {
+ return $this->height;
+ }
+ public function setSource($source) {
+ $this->source = $source;
+ }
+ public function getSource() {
+ return $this->source;
+ }
+ public function setWidth($width) {
+ $this->width = $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_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 $image;
+ public $kind;
+ protected $__labelsType = 'Google_Service_Customsearch_ResultLabels';
+ protected $__labelsDataType = 'array';
+ public $labels;
+ public $link;
+ public $mime;
+ public $pagemap;
+ public $snippet;
+ public $title;
+ public function setCacheId($cacheId) {
+ $this->cacheId = $cacheId;
+ }
+ public function getCacheId() {
+ return $this->cacheId;
+ }
+ public function setDisplayLink($displayLink) {
+ $this->displayLink = $displayLink;
+ }
+ public function getDisplayLink() {
+ return $this->displayLink;
+ }
+ public function setFileFormat($fileFormat) {
+ $this->fileFormat = $fileFormat;
+ }
+ public function getFileFormat() {
+ return $this->fileFormat;
+ }
+ public function setFormattedUrl($formattedUrl) {
+ $this->formattedUrl = $formattedUrl;
+ }
+ public function getFormattedUrl() {
+ return $this->formattedUrl;
+ }
+ public function setHtmlFormattedUrl($htmlFormattedUrl) {
+ $this->htmlFormattedUrl = $htmlFormattedUrl;
+ }
+ public function getHtmlFormattedUrl() {
+ return $this->htmlFormattedUrl;
+ }
+ public function setHtmlSnippet($htmlSnippet) {
+ $this->htmlSnippet = $htmlSnippet;
+ }
+ public function getHtmlSnippet() {
+ return $this->htmlSnippet;
+ }
+ public function setHtmlTitle($htmlTitle) {
+ $this->htmlTitle = $htmlTitle;
+ }
+ public function getHtmlTitle() {
+ return $this->htmlTitle;
+ }
+ public function setImage(Google_Service_Customsearch_ResultImage$image) {
+ $this->image = $image;
+ }
+ public function getImage() {
+ return $this->image;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setLabels($labels) {
+ $this->labels = $labels;
+ }
+ public function getLabels() {
+ return $this->labels;
+ }
+ public function setLink($link) {
+ $this->link = $link;
+ }
+ public function getLink() {
+ return $this->link;
+ }
+ public function setMime($mime) {
+ $this->mime = $mime;
+ }
+ public function getMime() {
+ return $this->mime;
+ }
+ public function setPagemap($pagemap) {
+ $this->pagemap = $pagemap;
+ }
+ public function getPagemap() {
+ return $this->pagemap;
+ }
+ public function setSnippet($snippet) {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet() {
+ return $this->snippet;
+ }
+ public function setTitle($title) {
+ $this->title = $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;
+ public function setByteSize($byteSize) {
+ $this->byteSize = $byteSize;
+ }
+ public function getByteSize() {
+ return $this->byteSize;
+ }
+ public function setContextLink($contextLink) {
+ $this->contextLink = $contextLink;
+ }
+ public function getContextLink() {
+ return $this->contextLink;
+ }
+ public function setHeight($height) {
+ $this->height = $height;
+ }
+ public function getHeight() {
+ return $this->height;
+ }
+ public function setThumbnailHeight($thumbnailHeight) {
+ $this->thumbnailHeight = $thumbnailHeight;
+ }
+ public function getThumbnailHeight() {
+ return $this->thumbnailHeight;
+ }
+ public function setThumbnailLink($thumbnailLink) {
+ $this->thumbnailLink = $thumbnailLink;
+ }
+ public function getThumbnailLink() {
+ return $this->thumbnailLink;
+ }
+ public function setThumbnailWidth($thumbnailWidth) {
+ $this->thumbnailWidth = $thumbnailWidth;
+ }
+ public function getThumbnailWidth() {
+ return $this->thumbnailWidth;
+ }
+ public function setWidth($width) {
+ $this->width = $width;
+ }
+ public function getWidth() {
+ return $this->width;
+ }
+}
+
+class Google_Service_Customsearch_ResultLabels
+ extends Google_Model {
+ public $displayName;
+ public $name;
+ public function setDisplayName($displayName) {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName() {
+ return $this->displayName;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+}
+
+class Google_Service_Customsearch_Search
+ extends Google_Collection {
+ protected $__contextType = 'Google_Service_Customsearch_Context';
+ protected $__contextDataType = '';
+ public $context;
+ protected $__itemsType = 'Google_Service_Customsearch_Result';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ protected $__promotionsType = 'Google_Service_Customsearch_Promotion';
+ protected $__promotionsDataType = 'array';
+ public $promotions;
+ protected $__queriesType = 'Google_Service_Customsearch_Query';
+ protected $__queriesDataType = 'map';
+ public $queries;
+ protected $__searchInformationType = 'Google_Service_Customsearch_SearchSearchInformation';
+ protected $__searchInformationDataType = '';
+ public $searchInformation;
+ protected $__spellingType = 'Google_Service_Customsearch_SearchSpelling';
+ protected $__spellingDataType = '';
+ public $spelling;
+ protected $__urlType = 'Google_Service_Customsearch_SearchUrl';
+ protected $__urlDataType = '';
+ public $url;
+ public function setContext(Google_Service_Customsearch_Context$context) {
+ $this->context = $context;
+ }
+ public function getContext() {
+ return $this->context;
+ }
+ 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 setPromotions($promotions) {
+ $this->promotions = $promotions;
+ }
+ public function getPromotions() {
+ return $this->promotions;
+ }
+ public function setQueries(Google_Service_Customsearch_Query$queries) {
+ $this->queries = $queries;
+ }
+ public function getQueries() {
+ return $this->queries;
+ }
+ public function setSearchInformation(Google_Service_Customsearch_SearchSearchInformation$searchInformation) {
+ $this->searchInformation = $searchInformation;
+ }
+ public function getSearchInformation() {
+ return $this->searchInformation;
+ }
+ public function setSpelling(Google_Service_Customsearch_SearchSpelling$spelling) {
+ $this->spelling = $spelling;
+ }
+ public function getSpelling() {
+ return $this->spelling;
+ }
+ public function setUrl(Google_Service_Customsearch_SearchUrl$url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
+
+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 getFormattedSearchTime() {
+ return $this->formattedSearchTime;
+ }
+ public function setFormattedTotalResults($formattedTotalResults) {
+ $this->formattedTotalResults = $formattedTotalResults;
+ }
+ public function getFormattedTotalResults() {
+ return $this->formattedTotalResults;
+ }
+ public function setSearchTime($searchTime) {
+ $this->searchTime = $searchTime;
+ }
+ public function getSearchTime() {
+ return $this->searchTime;
+ }
+ public function setTotalResults($totalResults) {
+ $this->totalResults = $totalResults;
+ }
+ public function getTotalResults() {
+ return $this->totalResults;
+ }
+}
+
+class Google_Service_Customsearch_SearchSpelling
+ extends Google_Model {
+ public $correctedQuery;
+ public $htmlCorrectedQuery;
+ public function setCorrectedQuery($correctedQuery) {
+ $this->correctedQuery = $correctedQuery;
+ }
+ public function getCorrectedQuery() {
+ return $this->correctedQuery;
+ }
+ public function setHtmlCorrectedQuery($htmlCorrectedQuery) {
+ $this->htmlCorrectedQuery = $htmlCorrectedQuery;
+ }
+ public function getHtmlCorrectedQuery() {
+ return $this->htmlCorrectedQuery;
+ }
+}
+
+class Google_Service_Customsearch_SearchUrl
+ extends Google_Model {
+ public $template;
+ public $type;
+ public function setTemplate($template) {
+ $this->template = $template;
+ }
+ public function getTemplate() {
+ return $this->template;
+ }
+ public function setType($type) {
+ $this->type = $type;
+ }
+ public function getType() {
+ return $this->type;
+ }
+}
diff --git a/src/Google/Service/Dfareporting.php b/src/Google/Service/Dfareporting.php
new file mode 100644
index 0000000..6617c4e
--- /dev/null
+++ b/src/Google/Service/Dfareporting.php
@@ -0,0 +1,1567 @@
+
+ * Lets you create, run and download reports.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Dfareporting extends Google_Service { + public $dimensionValues; + public $files; + public $reports; + public $reports_files; + public $userProfiles; + /** + * Constructs the internal representation of the Dfareporting service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'dfareporting/v1.1/'; + $this->version = 'v1.1'; + $this->serviceName = 'dfareporting'; + + $client->addService($this->serviceName, $this->version); + $this->dimensionValues = new Google_Service_Dfareporting_DimensionValues_Resource($this, $this->serviceName, 'dimensionValues', json_decode('{"methods": {"query": {"id": "dfareporting.dimensionValues.query", "path": "userprofiles/{profileId}/dimensionvalues/query", "httpMethod": "POST", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "profileId": {"type": "string", "required": true, "format": "int64", "location": "path"}}, "request": {"$ref": "DimensionValueRequest"}, "response": {"$ref": "DimensionValueList"}, "scopes": ["https://www.googleapis.com/auth/dfareporting"]}}}', true)); + $this->files = new Google_Service_Dfareporting_Files_Resource($this, $this->serviceName, 'files', json_decode('{"methods": {"list": {"id": "dfareporting.files.list", "path": "userprofiles/{profileId}/files", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "profileId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "sortField": {"type": "string", "default": "LAST_MODIFIED_TIME", "enum": ["ID", "LAST_MODIFIED_TIME"], "location": "query"}, "sortOrder": {"type": "string", "default": "DESCENDING", "enum": ["ASCENDING", "DESCENDING"], "location": "query"}}, "response": {"$ref": "FileList"}, "scopes": ["https://www.googleapis.com/auth/dfareporting"]}}}', true)); + $this->reports = new Google_Service_Dfareporting_Reports_Resource($this, $this->serviceName, 'reports', json_decode('{"methods": {"delete": {"id": "dfareporting.reports.delete", "path": "userprofiles/{profileId}/reports/{reportId}", "httpMethod": "DELETE", "parameters": {"profileId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "reportId": {"type": "string", "required": true, "format": "int64", "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/dfareporting"]}, "get": {"id": "dfareporting.reports.get", "path": "userprofiles/{profileId}/reports/{reportId}", "httpMethod": "GET", "parameters": {"profileId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "reportId": {"type": "string", "required": true, "format": "int64", "location": "path"}}, "response": {"$ref": "Report"}, "scopes": ["https://www.googleapis.com/auth/dfareporting"]}, "insert": {"id": "dfareporting.reports.insert", "path": "userprofiles/{profileId}/reports", "httpMethod": "POST", "parameters": {"profileId": {"type": "string", "required": true, "format": "int64", "location": "path"}}, "request": {"$ref": "Report"}, "response": {"$ref": "Report"}, "scopes": ["https://www.googleapis.com/auth/dfareporting"]}, "list": {"id": "dfareporting.reports.list", "path": "userprofiles/{profileId}/reports", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "profileId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "sortField": {"type": "string", "default": "LAST_MODIFIED_TIME", "enum": ["ID", "LAST_MODIFIED_TIME", "NAME"], "location": "query"}, "sortOrder": {"type": "string", "default": "DESCENDING", "enum": ["ASCENDING", "DESCENDING"], "location": "query"}}, "response": {"$ref": "ReportList"}, "scopes": ["https://www.googleapis.com/auth/dfareporting"]}, "patch": {"id": "dfareporting.reports.patch", "path": "userprofiles/{profileId}/reports/{reportId}", "httpMethod": "PATCH", "parameters": {"profileId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "reportId": {"type": "string", "required": true, "format": "int64", "location": "path"}}, "request": {"$ref": "Report"}, "response": {"$ref": "Report"}, "scopes": ["https://www.googleapis.com/auth/dfareporting"]}, "run": {"id": "dfareporting.reports.run", "path": "userprofiles/{profileId}/reports/{reportId}/run", "httpMethod": "POST", "parameters": {"profileId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "reportId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "synchronous": {"type": "boolean", "location": "query"}}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/dfareporting"]}, "update": {"id": "dfareporting.reports.update", "path": "userprofiles/{profileId}/reports/{reportId}", "httpMethod": "PUT", "parameters": {"profileId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "reportId": {"type": "string", "required": true, "format": "int64", "location": "path"}}, "request": {"$ref": "Report"}, "response": {"$ref": "Report"}, "scopes": ["https://www.googleapis.com/auth/dfareporting"]}}}', true)); + $this->reports_files = new Google_Service_Dfareporting_ReportsFiles_Resource($this, $this->serviceName, 'files', json_decode('{"methods": {"get": {"id": "dfareporting.reports.files.get", "path": "userprofiles/{profileId}/reports/{reportId}/files/{fileId}", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "profileId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "reportId": {"type": "string", "required": true, "format": "int64", "location": "path"}}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/dfareporting"]}, "list": {"id": "dfareporting.reports.files.list", "path": "userprofiles/{profileId}/reports/{reportId}/files", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "int32", "minimum": "0", "maximum": "10", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "profileId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "reportId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "sortField": {"type": "string", "default": "LAST_MODIFIED_TIME", "enum": ["ID", "LAST_MODIFIED_TIME"], "location": "query"}, "sortOrder": {"type": "string", "default": "DESCENDING", "enum": ["ASCENDING", "DESCENDING"], "location": "query"}}, "response": {"$ref": "FileList"}, "scopes": ["https://www.googleapis.com/auth/dfareporting"]}}}', true)); + $this->userProfiles = new Google_Service_Dfareporting_UserProfiles_Resource($this, $this->serviceName, 'userProfiles', json_decode('{"methods": {"get": {"id": "dfareporting.userProfiles.get", "path": "userprofiles/{profileId}", "httpMethod": "GET", "parameters": {"profileId": {"type": "string", "required": true, "format": "int64", "location": "path"}}, "response": {"$ref": "UserProfile"}, "scopes": ["https://www.googleapis.com/auth/dfareporting"]}, "list": {"id": "dfareporting.userProfiles.list", "path": "userprofiles", "httpMethod": "GET", "response": {"$ref": "UserProfileList"}, "scopes": ["https://www.googleapis.com/auth/dfareporting"]}}}', true)); + + } +} + + + /** + * The "dimensionValues" collection of methods. + * Typical usage is: + *
+ * $dfareportingService = new Google_DfareportingService(...);
+ * $dimensionValues = $dfareportingService->dimensionValues;
+ *
+ */
+ 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 int maxResults Maximum number of results to return.
+ * @opt_param string pageToken The value of the nextToken from the previous result page.
+ * @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);
+ $data = $this->__call('query', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Dfareporting_DimensionValueList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "files" collection of methods.
+ * Typical usage is:
+ *
+ * $dfareportingService = new Google_DfareportingService(...);
+ * $files = $dfareportingService->files;
+ *
+ */
+ class Google_Service_Dfareporting_Files_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Lists files for a user profile. (files.list)
+ *
+ * @param string $profileId The DFA profile ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @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 sortField The field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'.
+ * @return Google_Service_Dfareporting_FileList
+ */
+ public function listFiles($profileId, $optParams = array()) {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Dfareporting_FileList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "reports" collection of methods.
+ * Typical usage is:
+ *
+ * $dfareportingService = new Google_DfareportingService(...);
+ * $reports = $dfareportingService->reports;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Dfareporting_Report($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Dfareporting_Report($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves list of reports. (reports.list)
+ *
+ * @param string $profileId The DFA user profile ID.
+ * @param array $optParams Optional parameters.
+ *
+ * @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 sortField The field by which to sort the list.
+ * @opt_param string sortOrder Order of sorted results, default is 'DESCENDING'.
+ * @return Google_Service_Dfareporting_ReportList
+ */
+ public function listReports($profileId, $optParams = array()) {
+ $params = array('profileId' => $profileId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Dfareporting_ReportList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Dfareporting_Report($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('run', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Dfareporting_DfareportingFile($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Dfareporting_Report($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "files" collection of methods.
+ * Typical usage is:
+ *
+ * $dfareportingService = new Google_DfareportingService(...);
+ * $files = $dfareportingService->files;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Dfareporting_DfareportingFile($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Lists files for a report. (files.list)
+ *
+ * @param string $profileId The DFA profile ID.
+ * @param string $reportId The ID of the parent report.
+ * @param array $optParams Optional parameters.
+ *
+ * @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 sortField The field by which to sort the list.
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Dfareporting_FileList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "userProfiles" collection of methods.
+ * Typical usage is:
+ *
+ * $dfareportingService = new Google_DfareportingService(...);
+ * $userProfiles = $dfareportingService->userProfiles;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Dfareporting_UserProfile($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves list of user profiles for a user. (userProfiles.list)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Dfareporting_UserProfileList
+ */
+ public function listUserProfiles($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Dfareporting_UserProfileList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Dfareporting_Activities
+ extends Google_Collection {
+ protected $__filtersType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $__filtersDataType = 'array';
+ public $filters;
+ public $kind;
+ public $metricNames;
+ public function setFilters($filters) {
+ $this->filters = $filters;
+ }
+ public function getFilters() {
+ return $this->filters;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setMetricNames($metricNames) {
+ $this->metricNames = $metricNames;
+ }
+ public function getMetricNames() {
+ return $this->metricNames;
+ }
+}
+
+class Google_Service_Dfareporting_CustomRichMediaEvents
+ extends Google_Collection {
+ protected $__filteredEventIdsType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $__filteredEventIdsDataType = 'array';
+ public $filteredEventIds;
+ public $kind;
+ public function setFilteredEventIds($filteredEventIds) {
+ $this->filteredEventIds = $filteredEventIds;
+ }
+ public function getFilteredEventIds() {
+ return $this->filteredEventIds;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+}
+
+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 getEndDate() {
+ return $this->endDate;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setRelativeDateRange($relativeDateRange) {
+ $this->relativeDateRange = $relativeDateRange;
+ }
+ public function getRelativeDateRange() {
+ return $this->relativeDateRange;
+ }
+ public function setStartDate($startDate) {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate() {
+ return $this->startDate;
+ }
+}
+
+class Google_Service_Dfareporting_DfareportingFile
+ extends Google_Model {
+ protected $__dateRangeType = 'Google_Service_Dfareporting_DateRange';
+ protected $__dateRangeDataType = '';
+ public $dateRange;
+ 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 $urls;
+ public function setDateRange(Google_Service_Dfareporting_DateRange$dateRange) {
+ $this->dateRange = $dateRange;
+ }
+ public function getDateRange() {
+ return $this->dateRange;
+ }
+ public function setEtag($etag) {
+ $this->etag = $etag;
+ }
+ public function getEtag() {
+ return $this->etag;
+ }
+ public function setFileName($fileName) {
+ $this->fileName = $fileName;
+ }
+ public function getFileName() {
+ return $this->fileName;
+ }
+ public function setFormat($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 setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setLastModifiedTime($lastModifiedTime) {
+ $this->lastModifiedTime = $lastModifiedTime;
+ }
+ public function getLastModifiedTime() {
+ return $this->lastModifiedTime;
+ }
+ public function setReportId($reportId) {
+ $this->reportId = $reportId;
+ }
+ public function getReportId() {
+ return $this->reportId;
+ }
+ public function setStatus($status) {
+ $this->status = $status;
+ }
+ public function getStatus() {
+ return $this->status;
+ }
+ public function setUrls(Google_Service_Dfareporting_DfareportingFileUrls$urls) {
+ $this->urls = $urls;
+ }
+ public function getUrls() {
+ return $this->urls;
+ }
+}
+
+class Google_Service_Dfareporting_DfareportingFileUrls
+ extends Google_Model {
+ public $apiUrl;
+ public $browserUrl;
+ public function setApiUrl($apiUrl) {
+ $this->apiUrl = $apiUrl;
+ }
+ public function getApiUrl() {
+ return $this->apiUrl;
+ }
+ public function setBrowserUrl($browserUrl) {
+ $this->browserUrl = $browserUrl;
+ }
+ public function getBrowserUrl() {
+ return $this->browserUrl;
+ }
+}
+
+class Google_Service_Dfareporting_DimensionFilter
+ extends Google_Model {
+ public $dimensionName;
+ public $kind;
+ public $value;
+ public function setDimensionName($dimensionName) {
+ $this->dimensionName = $dimensionName;
+ }
+ public function getDimensionName() {
+ return $this->dimensionName;
+ }
+ 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_Dfareporting_DimensionValue
+ extends Google_Model {
+ public $dimensionName;
+ public $etag;
+ public $id;
+ public $kind;
+ public $value;
+ public function setDimensionName($dimensionName) {
+ $this->dimensionName = $dimensionName;
+ }
+ public function getDimensionName() {
+ return $this->dimensionName;
+ }
+ 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 setValue($value) {
+ $this->value = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $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 $filters;
+ public $kind;
+ public $startDate;
+ public function setDimensionName($dimensionName) {
+ $this->dimensionName = $dimensionName;
+ }
+ public function getDimensionName() {
+ return $this->dimensionName;
+ }
+ 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 setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setStartDate($startDate) {
+ $this->startDate = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_Dfareporting_Recipient
+ extends Google_Model {
+ public $deliveryType;
+ public $email;
+ public $kind;
+ public function setDeliveryType($deliveryType) {
+ $this->deliveryType = $deliveryType;
+ }
+ public function getDeliveryType() {
+ return $this->deliveryType;
+ }
+ public function setEmail($email) {
+ $this->email = $email;
+ }
+ public function getEmail() {
+ return $this->email;
+ }
+ public function setKind($kind) {
+ $this->kind = $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 = '';
+ public $activeGrpCriteria;
+ protected $__criteriaType = 'Google_Service_Dfareporting_ReportCriteria';
+ protected $__criteriaDataType = '';
+ public $criteria;
+ protected $__crossDimensionReachCriteriaType = 'Google_Service_Dfareporting_ReportCrossDimensionReachCriteria';
+ protected $__crossDimensionReachCriteriaDataType = '';
+ public $crossDimensionReachCriteria;
+ protected $__deliveryType = 'Google_Service_Dfareporting_ReportDelivery';
+ protected $__deliveryDataType = '';
+ public $delivery;
+ public $etag;
+ public $fileName;
+ protected $__floodlightCriteriaType = 'Google_Service_Dfareporting_ReportFloodlightCriteria';
+ protected $__floodlightCriteriaDataType = '';
+ public $floodlightCriteria;
+ public $format;
+ public $id;
+ public $kind;
+ public $lastModifiedTime;
+ public $name;
+ public $ownerProfileId;
+ protected $__pathToConversionCriteriaType = 'Google_Service_Dfareporting_ReportPathToConversionCriteria';
+ protected $__pathToConversionCriteriaDataType = '';
+ public $pathToConversionCriteria;
+ protected $__reachCriteriaType = 'Google_Service_Dfareporting_ReportReachCriteria';
+ protected $__reachCriteriaDataType = '';
+ public $reachCriteria;
+ protected $__scheduleType = 'Google_Service_Dfareporting_ReportSchedule';
+ protected $__scheduleDataType = '';
+ public $schedule;
+ public $subAccountId;
+ public $type;
+ public function setAccountId($accountId) {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId() {
+ return $this->accountId;
+ }
+ public function setActiveGrpCriteria(Google_Service_Dfareporting_ReportActiveGrpCriteria$activeGrpCriteria) {
+ $this->activeGrpCriteria = $activeGrpCriteria;
+ }
+ public function getActiveGrpCriteria() {
+ return $this->activeGrpCriteria;
+ }
+ public function setCriteria(Google_Service_Dfareporting_ReportCriteria$criteria) {
+ $this->criteria = $criteria;
+ }
+ public function getCriteria() {
+ return $this->criteria;
+ }
+ public function setCrossDimensionReachCriteria(Google_Service_Dfareporting_ReportCrossDimensionReachCriteria$crossDimensionReachCriteria) {
+ $this->crossDimensionReachCriteria = $crossDimensionReachCriteria;
+ }
+ public function getCrossDimensionReachCriteria() {
+ return $this->crossDimensionReachCriteria;
+ }
+ public function setDelivery(Google_Service_Dfareporting_ReportDelivery$delivery) {
+ $this->delivery = $delivery;
+ }
+ public function getDelivery() {
+ return $this->delivery;
+ }
+ public function setEtag($etag) {
+ $this->etag = $etag;
+ }
+ public function getEtag() {
+ return $this->etag;
+ }
+ public function setFileName($fileName) {
+ $this->fileName = $fileName;
+ }
+ public function getFileName() {
+ return $this->fileName;
+ }
+ public function setFloodlightCriteria(Google_Service_Dfareporting_ReportFloodlightCriteria$floodlightCriteria) {
+ $this->floodlightCriteria = $floodlightCriteria;
+ }
+ public function getFloodlightCriteria() {
+ return $this->floodlightCriteria;
+ }
+ public function setFormat($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 setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setLastModifiedTime($lastModifiedTime) {
+ $this->lastModifiedTime = $lastModifiedTime;
+ }
+ public function getLastModifiedTime() {
+ return $this->lastModifiedTime;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setOwnerProfileId($ownerProfileId) {
+ $this->ownerProfileId = $ownerProfileId;
+ }
+ public function getOwnerProfileId() {
+ return $this->ownerProfileId;
+ }
+ public function setPathToConversionCriteria(Google_Service_Dfareporting_ReportPathToConversionCriteria$pathToConversionCriteria) {
+ $this->pathToConversionCriteria = $pathToConversionCriteria;
+ }
+ public function getPathToConversionCriteria() {
+ return $this->pathToConversionCriteria;
+ }
+ public function setReachCriteria(Google_Service_Dfareporting_ReportReachCriteria$reachCriteria) {
+ $this->reachCriteria = $reachCriteria;
+ }
+ public function getReachCriteria() {
+ return $this->reachCriteria;
+ }
+ public function setSchedule(Google_Service_Dfareporting_ReportSchedule$schedule) {
+ $this->schedule = $schedule;
+ }
+ public function getSchedule() {
+ return $this->schedule;
+ }
+ public function setSubAccountId($subAccountId) {
+ $this->subAccountId = $subAccountId;
+ }
+ public function getSubAccountId() {
+ return $this->subAccountId;
+ }
+ public function setType($type) {
+ $this->type = $type;
+ }
+ public function getType() {
+ return $this->type;
+ }
+}
+
+class Google_Service_Dfareporting_ReportActiveGrpCriteria
+ extends Google_Collection {
+ protected $__dateRangeType = 'Google_Service_Dfareporting_DateRange';
+ protected $__dateRangeDataType = '';
+ public $dateRange;
+ protected $__dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $__dimensionFiltersDataType = 'array';
+ public $dimensionFilters;
+ protected $__dimensionsType = 'Google_Service_Dfareporting_SortedDimension';
+ protected $__dimensionsDataType = 'array';
+ public $dimensions;
+ public $metricNames;
+ public function setDateRange(Google_Service_Dfareporting_DateRange$dateRange) {
+ $this->dateRange = $dateRange;
+ }
+ public function getDateRange() {
+ return $this->dateRange;
+ }
+ public function setDimensionFilters($dimensionFilters) {
+ $this->dimensionFilters = $dimensionFilters;
+ }
+ public function getDimensionFilters() {
+ return $this->dimensionFilters;
+ }
+ public function setDimensions($dimensions) {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions() {
+ return $this->dimensions;
+ }
+ public function setMetricNames($metricNames) {
+ $this->metricNames = $metricNames;
+ }
+ public function getMetricNames() {
+ return $this->metricNames;
+ }
+}
+
+class Google_Service_Dfareporting_ReportCriteria
+ extends Google_Collection {
+ protected $__activitiesType = 'Google_Service_Dfareporting_Activities';
+ protected $__activitiesDataType = '';
+ public $activities;
+ protected $__customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents';
+ protected $__customRichMediaEventsDataType = '';
+ public $customRichMediaEvents;
+ protected $__dateRangeType = 'Google_Service_Dfareporting_DateRange';
+ protected $__dateRangeDataType = '';
+ public $dateRange;
+ protected $__dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $__dimensionFiltersDataType = 'array';
+ public $dimensionFilters;
+ protected $__dimensionsType = 'Google_Service_Dfareporting_SortedDimension';
+ protected $__dimensionsDataType = 'array';
+ public $dimensions;
+ public $metricNames;
+ public function setActivities(Google_Service_Dfareporting_Activities$activities) {
+ $this->activities = $activities;
+ }
+ public function getActivities() {
+ return $this->activities;
+ }
+ public function setCustomRichMediaEvents(Google_Service_Dfareporting_CustomRichMediaEvents$customRichMediaEvents) {
+ $this->customRichMediaEvents = $customRichMediaEvents;
+ }
+ public function getCustomRichMediaEvents() {
+ return $this->customRichMediaEvents;
+ }
+ public function setDateRange(Google_Service_Dfareporting_DateRange$dateRange) {
+ $this->dateRange = $dateRange;
+ }
+ public function getDateRange() {
+ return $this->dateRange;
+ }
+ public function setDimensionFilters($dimensionFilters) {
+ $this->dimensionFilters = $dimensionFilters;
+ }
+ public function getDimensionFilters() {
+ return $this->dimensionFilters;
+ }
+ public function setDimensions($dimensions) {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions() {
+ return $this->dimensions;
+ }
+ public function setMetricNames($metricNames) {
+ $this->metricNames = $metricNames;
+ }
+ public function getMetricNames() {
+ return $this->metricNames;
+ }
+}
+
+class Google_Service_Dfareporting_ReportCrossDimensionReachCriteria
+ extends Google_Collection {
+ protected $__breakdownType = 'Google_Service_Dfareporting_SortedDimension';
+ protected $__breakdownDataType = 'array';
+ public $breakdown;
+ protected $__dateRangeType = 'Google_Service_Dfareporting_DateRange';
+ protected $__dateRangeDataType = '';
+ public $dateRange;
+ public $dimension;
+ protected $__dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $__dimensionFiltersDataType = 'array';
+ public $dimensionFilters;
+ public $metricNames;
+ public $overlapMetricNames;
+ public $pivoted;
+ public function setBreakdown($breakdown) {
+ $this->breakdown = $breakdown;
+ }
+ public function getBreakdown() {
+ return $this->breakdown;
+ }
+ public function setDateRange(Google_Service_Dfareporting_DateRange$dateRange) {
+ $this->dateRange = $dateRange;
+ }
+ public function getDateRange() {
+ return $this->dateRange;
+ }
+ public function setDimension($dimension) {
+ $this->dimension = $dimension;
+ }
+ public function getDimension() {
+ return $this->dimension;
+ }
+ public function setDimensionFilters($dimensionFilters) {
+ $this->dimensionFilters = $dimensionFilters;
+ }
+ public function getDimensionFilters() {
+ return $this->dimensionFilters;
+ }
+ public function setMetricNames($metricNames) {
+ $this->metricNames = $metricNames;
+ }
+ public function getMetricNames() {
+ return $this->metricNames;
+ }
+ public function setOverlapMetricNames($overlapMetricNames) {
+ $this->overlapMetricNames = $overlapMetricNames;
+ }
+ public function getOverlapMetricNames() {
+ return $this->overlapMetricNames;
+ }
+ public function setPivoted($pivoted) {
+ $this->pivoted = $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';
+ public $recipients;
+ public function setEmailOwner($emailOwner) {
+ $this->emailOwner = $emailOwner;
+ }
+ public function getEmailOwner() {
+ return $this->emailOwner;
+ }
+ public function setEmailOwnerDeliveryType($emailOwnerDeliveryType) {
+ $this->emailOwnerDeliveryType = $emailOwnerDeliveryType;
+ }
+ public function getEmailOwnerDeliveryType() {
+ return $this->emailOwnerDeliveryType;
+ }
+ public function setMessage($message) {
+ $this->message = $message;
+ }
+ public function getMessage() {
+ return $this->message;
+ }
+ public function setRecipients($recipients) {
+ $this->recipients = $recipients;
+ }
+ public function getRecipients() {
+ return $this->recipients;
+ }
+}
+
+class Google_Service_Dfareporting_ReportFloodlightCriteria
+ extends Google_Collection {
+ protected $__dateRangeType = 'Google_Service_Dfareporting_DateRange';
+ protected $__dateRangeDataType = '';
+ public $dateRange;
+ protected $__dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $__dimensionFiltersDataType = 'array';
+ public $dimensionFilters;
+ protected $__dimensionsType = 'Google_Service_Dfareporting_SortedDimension';
+ protected $__dimensionsDataType = 'array';
+ public $dimensions;
+ protected $__floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $__floodlightConfigIdDataType = '';
+ public $floodlightConfigId;
+ public $metricNames;
+ protected $__reportPropertiesType = 'Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties';
+ protected $__reportPropertiesDataType = '';
+ public $reportProperties;
+ public function setDateRange(Google_Service_Dfareporting_DateRange$dateRange) {
+ $this->dateRange = $dateRange;
+ }
+ public function getDateRange() {
+ return $this->dateRange;
+ }
+ public function setDimensionFilters($dimensionFilters) {
+ $this->dimensionFilters = $dimensionFilters;
+ }
+ public function getDimensionFilters() {
+ return $this->dimensionFilters;
+ }
+ public function setDimensions($dimensions) {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions() {
+ return $this->dimensions;
+ }
+ public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue$floodlightConfigId) {
+ $this->floodlightConfigId = $floodlightConfigId;
+ }
+ public function getFloodlightConfigId() {
+ return $this->floodlightConfigId;
+ }
+ public function setMetricNames($metricNames) {
+ $this->metricNames = $metricNames;
+ }
+ public function getMetricNames() {
+ return $this->metricNames;
+ }
+ public function setReportProperties(Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties$reportProperties) {
+ $this->reportProperties = $reportProperties;
+ }
+ public function getReportProperties() {
+ return $this->reportProperties;
+ }
+}
+
+class Google_Service_Dfareporting_ReportFloodlightCriteriaReportProperties
+ extends Google_Model {
+ public $includeAttributedIPConversions;
+ public $includeUnattributedCookieConversions;
+ public $includeUnattributedIPConversions;
+ public function setIncludeAttributedIPConversions($includeAttributedIPConversions) {
+ $this->includeAttributedIPConversions = $includeAttributedIPConversions;
+ }
+ public function getIncludeAttributedIPConversions() {
+ return $this->includeAttributedIPConversions;
+ }
+ public function setIncludeUnattributedCookieConversions($includeUnattributedCookieConversions) {
+ $this->includeUnattributedCookieConversions = $includeUnattributedCookieConversions;
+ }
+ public function getIncludeUnattributedCookieConversions() {
+ return $this->includeUnattributedCookieConversions;
+ }
+ public function setIncludeUnattributedIPConversions($includeUnattributedIPConversions) {
+ $this->includeUnattributedIPConversions = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
+
+class Google_Service_Dfareporting_ReportPathToConversionCriteria
+ extends Google_Collection {
+ protected $__activityFiltersType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $__activityFiltersDataType = 'array';
+ public $activityFilters;
+ protected $__conversionDimensionsType = 'Google_Service_Dfareporting_SortedDimension';
+ protected $__conversionDimensionsDataType = 'array';
+ public $conversionDimensions;
+ protected $__customFloodlightVariablesType = 'Google_Service_Dfareporting_SortedDimension';
+ protected $__customFloodlightVariablesDataType = 'array';
+ public $customFloodlightVariables;
+ protected $__dateRangeType = 'Google_Service_Dfareporting_DateRange';
+ protected $__dateRangeDataType = '';
+ public $dateRange;
+ protected $__floodlightConfigIdType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $__floodlightConfigIdDataType = '';
+ public $floodlightConfigId;
+ public $metricNames;
+ protected $__perInteractionDimensionsType = 'Google_Service_Dfareporting_SortedDimension';
+ protected $__perInteractionDimensionsDataType = 'array';
+ public $perInteractionDimensions;
+ protected $__reportPropertiesType = 'Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties';
+ protected $__reportPropertiesDataType = '';
+ public $reportProperties;
+ public function setActivityFilters($activityFilters) {
+ $this->activityFilters = $activityFilters;
+ }
+ public function getActivityFilters() {
+ return $this->activityFilters;
+ }
+ public function setConversionDimensions($conversionDimensions) {
+ $this->conversionDimensions = $conversionDimensions;
+ }
+ public function getConversionDimensions() {
+ return $this->conversionDimensions;
+ }
+ public function setCustomFloodlightVariables($customFloodlightVariables) {
+ $this->customFloodlightVariables = $customFloodlightVariables;
+ }
+ public function getCustomFloodlightVariables() {
+ return $this->customFloodlightVariables;
+ }
+ public function setDateRange(Google_Service_Dfareporting_DateRange$dateRange) {
+ $this->dateRange = $dateRange;
+ }
+ public function getDateRange() {
+ return $this->dateRange;
+ }
+ public function setFloodlightConfigId(Google_Service_Dfareporting_DimensionValue$floodlightConfigId) {
+ $this->floodlightConfigId = $floodlightConfigId;
+ }
+ public function getFloodlightConfigId() {
+ return $this->floodlightConfigId;
+ }
+ public function setMetricNames($metricNames) {
+ $this->metricNames = $metricNames;
+ }
+ public function getMetricNames() {
+ return $this->metricNames;
+ }
+ public function setPerInteractionDimensions($perInteractionDimensions) {
+ $this->perInteractionDimensions = $perInteractionDimensions;
+ }
+ public function getPerInteractionDimensions() {
+ return $this->perInteractionDimensions;
+ }
+ public function setReportProperties(Google_Service_Dfareporting_ReportPathToConversionCriteriaReportProperties$reportProperties) {
+ $this->reportProperties = $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;
+ public function setClicksLookbackWindow($clicksLookbackWindow) {
+ $this->clicksLookbackWindow = $clicksLookbackWindow;
+ }
+ public function getClicksLookbackWindow() {
+ return $this->clicksLookbackWindow;
+ }
+ public function setImpressionsLookbackWindow($impressionsLookbackWindow) {
+ $this->impressionsLookbackWindow = $impressionsLookbackWindow;
+ }
+ public function getImpressionsLookbackWindow() {
+ return $this->impressionsLookbackWindow;
+ }
+ public function setIncludeAttributedIPConversions($includeAttributedIPConversions) {
+ $this->includeAttributedIPConversions = $includeAttributedIPConversions;
+ }
+ public function getIncludeAttributedIPConversions() {
+ return $this->includeAttributedIPConversions;
+ }
+ public function setIncludeUnattributedCookieConversions($includeUnattributedCookieConversions) {
+ $this->includeUnattributedCookieConversions = $includeUnattributedCookieConversions;
+ }
+ public function getIncludeUnattributedCookieConversions() {
+ return $this->includeUnattributedCookieConversions;
+ }
+ public function setIncludeUnattributedIPConversions($includeUnattributedIPConversions) {
+ $this->includeUnattributedIPConversions = $includeUnattributedIPConversions;
+ }
+ public function getIncludeUnattributedIPConversions() {
+ return $this->includeUnattributedIPConversions;
+ }
+ public function setMaximumClickInteractions($maximumClickInteractions) {
+ $this->maximumClickInteractions = $maximumClickInteractions;
+ }
+ public function getMaximumClickInteractions() {
+ return $this->maximumClickInteractions;
+ }
+ public function setMaximumImpressionInteractions($maximumImpressionInteractions) {
+ $this->maximumImpressionInteractions = $maximumImpressionInteractions;
+ }
+ public function getMaximumImpressionInteractions() {
+ return $this->maximumImpressionInteractions;
+ }
+ public function setMaximumInteractionGap($maximumInteractionGap) {
+ $this->maximumInteractionGap = $maximumInteractionGap;
+ }
+ public function getMaximumInteractionGap() {
+ return $this->maximumInteractionGap;
+ }
+ public function setPivotOnInteractionPath($pivotOnInteractionPath) {
+ $this->pivotOnInteractionPath = $pivotOnInteractionPath;
+ }
+ public function getPivotOnInteractionPath() {
+ return $this->pivotOnInteractionPath;
+ }
+}
+
+class Google_Service_Dfareporting_ReportReachCriteria
+ extends Google_Collection {
+ protected $__activitiesType = 'Google_Service_Dfareporting_Activities';
+ protected $__activitiesDataType = '';
+ public $activities;
+ protected $__customRichMediaEventsType = 'Google_Service_Dfareporting_CustomRichMediaEvents';
+ protected $__customRichMediaEventsDataType = '';
+ public $customRichMediaEvents;
+ protected $__dateRangeType = 'Google_Service_Dfareporting_DateRange';
+ protected $__dateRangeDataType = '';
+ public $dateRange;
+ protected $__dimensionFiltersType = 'Google_Service_Dfareporting_DimensionValue';
+ protected $__dimensionFiltersDataType = 'array';
+ public $dimensionFilters;
+ protected $__dimensionsType = 'Google_Service_Dfareporting_SortedDimension';
+ protected $__dimensionsDataType = 'array';
+ public $dimensions;
+ public $metricNames;
+ public $reachByFrequencyMetricNames;
+ public function setActivities(Google_Service_Dfareporting_Activities$activities) {
+ $this->activities = $activities;
+ }
+ public function getActivities() {
+ return $this->activities;
+ }
+ public function setCustomRichMediaEvents(Google_Service_Dfareporting_CustomRichMediaEvents$customRichMediaEvents) {
+ $this->customRichMediaEvents = $customRichMediaEvents;
+ }
+ public function getCustomRichMediaEvents() {
+ return $this->customRichMediaEvents;
+ }
+ public function setDateRange(Google_Service_Dfareporting_DateRange$dateRange) {
+ $this->dateRange = $dateRange;
+ }
+ public function getDateRange() {
+ return $this->dateRange;
+ }
+ public function setDimensionFilters($dimensionFilters) {
+ $this->dimensionFilters = $dimensionFilters;
+ }
+ public function getDimensionFilters() {
+ return $this->dimensionFilters;
+ }
+ public function setDimensions($dimensions) {
+ $this->dimensions = $dimensions;
+ }
+ public function getDimensions() {
+ return $this->dimensions;
+ }
+ public function setMetricNames($metricNames) {
+ $this->metricNames = $metricNames;
+ }
+ public function getMetricNames() {
+ return $this->metricNames;
+ }
+ public function setReachByFrequencyMetricNames($reachByFrequencyMetricNames) {
+ $this->reachByFrequencyMetricNames = $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;
+ public function setActive($active) {
+ $this->active = $active;
+ }
+ public function getActive() {
+ return $this->active;
+ }
+ public function setEvery($every) {
+ $this->every = $every;
+ }
+ public function getEvery() {
+ return $this->every;
+ }
+ public function setExpirationDate($expirationDate) {
+ $this->expirationDate = $expirationDate;
+ }
+ public function getExpirationDate() {
+ return $this->expirationDate;
+ }
+ public function setRepeats($repeats) {
+ $this->repeats = $repeats;
+ }
+ public function getRepeats() {
+ return $this->repeats;
+ }
+ public function setRepeatsOnWeekDays($repeatsOnWeekDays) {
+ $this->repeatsOnWeekDays = $repeatsOnWeekDays;
+ }
+ public function getRepeatsOnWeekDays() {
+ return $this->repeatsOnWeekDays;
+ }
+ public function setRunsOnDayOfMonth($runsOnDayOfMonth) {
+ $this->runsOnDayOfMonth = $runsOnDayOfMonth;
+ }
+ public function getRunsOnDayOfMonth() {
+ return $this->runsOnDayOfMonth;
+ }
+ public function setStartDate($startDate) {
+ $this->startDate = $startDate;
+ }
+ public function getStartDate() {
+ return $this->startDate;
+ }
+}
+
+class Google_Service_Dfareporting_SortedDimension
+ extends Google_Model {
+ public $kind;
+ public $name;
+ public $sortOrder;
+ 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 setSortOrder($sortOrder) {
+ $this->sortOrder = $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;
+ public function setAccountId($accountId) {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId() {
+ return $this->accountId;
+ }
+ public function setAccountName($accountName) {
+ $this->accountName = $accountName;
+ }
+ public function getAccountName() {
+ return $this->accountName;
+ }
+ 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 setProfileId($profileId) {
+ $this->profileId = $profileId;
+ }
+ public function getProfileId() {
+ return $this->profileId;
+ }
+ public function setSubAccountId($subAccountId) {
+ $this->subAccountId = $subAccountId;
+ }
+ public function getSubAccountId() {
+ return $this->subAccountId;
+ }
+ public function setSubAccountName($subAccountName) {
+ $this->subAccountName = $subAccountName;
+ }
+ public function getSubAccountName() {
+ return $this->subAccountName;
+ }
+ public function setUserName($userName) {
+ $this->userName = $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 $items;
+ 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;
+ }
+}
diff --git a/src/Google/Service/Drive.php b/src/Google/Service/Drive.php
new file mode 100644
index 0000000..ff8f3e1
--- /dev/null
+++ b/src/Google/Service/Drive.php
@@ -0,0 +1,3221 @@
+
+ * The API to interact with Drive.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Drive extends Google_Service { + public $about; + public $apps; + public $changes; + public $children; + public $comments; + public $files; + public $parents; + public $permissions; + public $properties; + public $replies; + public $revisions; + /** + * Constructs the internal representation of the Drive service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'drive/v2/'; + $this->version = 'v2'; + $this->serviceName = 'drive'; + + $client->addService($this->serviceName, $this->version); + $this->about = new Google_Service_Drive_About_Resource($this, $this->serviceName, 'about', json_decode('{"methods": {"get": {"id": "drive.about.get", "path": "about", "httpMethod": "GET", "parameters": {"includeSubscribed": {"type": "boolean", "default": "true", "location": "query"}, "maxChangeIdCount": {"type": "string", "default": "1", "format": "int64", "location": "query"}, "startChangeId": {"type": "string", "format": "int64", "location": "query"}}, "response": {"$ref": "About"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}}}', true)); + $this->apps = new Google_Service_Drive_Apps_Resource($this, $this->serviceName, 'apps', json_decode('{"methods": {"get": {"id": "drive.apps.get", "path": "apps/{appId}", "httpMethod": "GET", "parameters": {"appId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "App"}, "scopes": ["https://www.googleapis.com/auth/drive.apps.readonly"]}, "list": {"id": "drive.apps.list", "path": "apps", "httpMethod": "GET", "response": {"$ref": "AppList"}, "scopes": ["https://www.googleapis.com/auth/drive.apps.readonly"]}}}', true)); + $this->changes = new Google_Service_Drive_Changes_Resource($this, $this->serviceName, 'changes', json_decode('{"methods": {"get": {"id": "drive.changes.get", "path": "changes/{changeId}", "httpMethod": "GET", "parameters": {"changeId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Change"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "list": {"id": "drive.changes.list", "path": "changes", "httpMethod": "GET", "parameters": {"includeDeleted": {"type": "boolean", "default": "true", "location": "query"}, "includeSubscribed": {"type": "boolean", "default": "true", "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "int32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "startChangeId": {"type": "string", "format": "int64", "location": "query"}}, "response": {"$ref": "ChangeList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "supportsSubscription": true}}}', true)); + $this->children = new Google_Service_Drive_Children_Resource($this, $this->serviceName, 'children', json_decode('{"methods": {"delete": {"id": "drive.children.delete", "path": "files/{folderId}/children/{childId}", "httpMethod": "DELETE", "parameters": {"childId": {"type": "string", "required": true, "location": "path"}, "folderId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "get": {"id": "drive.children.get", "path": "files/{folderId}/children/{childId}", "httpMethod": "GET", "parameters": {"childId": {"type": "string", "required": true, "location": "path"}, "folderId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ChildReference"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "insert": {"id": "drive.children.insert", "path": "files/{folderId}/children", "httpMethod": "POST", "parameters": {"folderId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ChildReference"}, "response": {"$ref": "ChildReference"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "list": {"id": "drive.children.list", "path": "files/{folderId}/children", "httpMethod": "GET", "parameters": {"folderId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "default": "100", "format": "int32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}}, "response": {"$ref": "ChildList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}}}', true)); + $this->comments = new Google_Service_Drive_Comments_Resource($this, $this->serviceName, 'comments', json_decode('{"methods": {"delete": {"id": "drive.comments.delete", "path": "files/{fileId}/comments/{commentId}", "httpMethod": "DELETE", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly"]}, "get": {"id": "drive.comments.get", "path": "files/{fileId}/comments/{commentId}", "httpMethod": "GET", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}, "includeDeleted": {"type": "boolean", "default": "false", "location": "query"}}, "response": {"$ref": "Comment"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly"]}, "insert": {"id": "drive.comments.insert", "path": "files/{fileId}/comments", "httpMethod": "POST", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Comment"}, "response": {"$ref": "Comment"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly"]}, "list": {"id": "drive.comments.list", "path": "files/{fileId}/comments", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "includeDeleted": {"type": "boolean", "default": "false", "location": "query"}, "maxResults": {"type": "integer", "default": "20", "format": "int32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}}, "response": {"$ref": "CommentList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly"]}, "patch": {"id": "drive.comments.patch", "path": "files/{fileId}/comments/{commentId}", "httpMethod": "PATCH", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Comment"}, "response": {"$ref": "Comment"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "update": {"id": "drive.comments.update", "path": "files/{fileId}/comments/{commentId}", "httpMethod": "PUT", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Comment"}, "response": {"$ref": "Comment"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}}}', true)); + $this->files = new Google_Service_Drive_Files_Resource($this, $this->serviceName, 'files', json_decode('{"methods": {"copy": {"id": "drive.files.copy", "path": "files/{fileId}/copy", "httpMethod": "POST", "parameters": {"convert": {"type": "boolean", "default": "false", "location": "query"}, "fileId": {"type": "string", "required": true, "location": "path"}, "ocr": {"type": "boolean", "default": "false", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"type": "boolean", "default": "false", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file"]}, "delete": {"id": "drive.files.delete", "path": "files/{fileId}", "httpMethod": "DELETE", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "get": {"id": "drive.files.get", "path": "files/{fileId}", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "projection": {"type": "string", "enum": ["BASIC", "FULL"], "location": "query"}, "updateViewedDate": {"type": "boolean", "default": "false", "location": "query"}}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"], "supportsSubscription": true}, "insert": {"id": "drive.files.insert", "path": "files", "httpMethod": "POST", "parameters": {"convert": {"type": "boolean", "default": "false", "location": "query"}, "ocr": {"type": "boolean", "default": "false", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"type": "boolean", "default": "false", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "useContentAsIndexableText": {"type": "boolean", "default": "false", "location": "query"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["*/*"], "maxSize": "10GB", "protocols": {"simple": {"multipart": true, "path": "/upload/drive/v2/files"}, "resumable": {"multipart": true, "path": "/resumable/upload/drive/v2/files"}}}, "supportsSubscription": true}, "list": {"id": "drive.files.list", "path": "files", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "default": "100", "format": "int32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projection": {"type": "string", "enum": ["BASIC", "FULL"], "location": "query"}, "q": {"type": "string", "location": "query"}}, "response": {"$ref": "FileList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "patch": {"id": "drive.files.patch", "path": "files/{fileId}", "httpMethod": "PATCH", "parameters": {"convert": {"type": "boolean", "default": "false", "location": "query"}, "fileId": {"type": "string", "required": true, "location": "path"}, "newRevision": {"type": "boolean", "default": "true", "location": "query"}, "ocr": {"type": "boolean", "default": "false", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"type": "boolean", "default": "false", "location": "query"}, "setModifiedDate": {"type": "boolean", "default": "false", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "updateViewedDate": {"type": "boolean", "default": "true", "location": "query"}, "useContentAsIndexableText": {"type": "boolean", "default": "false", "location": "query"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.scripts"]}, "touch": {"id": "drive.files.touch", "path": "files/{fileId}/touch", "httpMethod": "POST", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file"]}, "trash": {"id": "drive.files.trash", "path": "files/{fileId}/trash", "httpMethod": "POST", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file"]}, "untrash": {"id": "drive.files.untrash", "path": "files/{fileId}/untrash", "httpMethod": "POST", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file"]}, "update": {"id": "drive.files.update", "path": "files/{fileId}", "httpMethod": "PUT", "parameters": {"convert": {"type": "boolean", "default": "false", "location": "query"}, "fileId": {"type": "string", "required": true, "location": "path"}, "newRevision": {"type": "boolean", "default": "true", "location": "query"}, "ocr": {"type": "boolean", "default": "false", "location": "query"}, "ocrLanguage": {"type": "string", "location": "query"}, "pinned": {"type": "boolean", "default": "false", "location": "query"}, "setModifiedDate": {"type": "boolean", "default": "false", "location": "query"}, "timedTextLanguage": {"type": "string", "location": "query"}, "timedTextTrackName": {"type": "string", "location": "query"}, "updateViewedDate": {"type": "boolean", "default": "true", "location": "query"}, "useContentAsIndexableText": {"type": "boolean", "default": "false", "location": "query"}}, "request": {"$ref": "File"}, "response": {"$ref": "File"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.scripts"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["*/*"], "maxSize": "10GB", "protocols": {"simple": {"multipart": true, "path": "/upload/drive/v2/files/{fileId}"}, "resumable": {"multipart": true, "path": "/resumable/upload/drive/v2/files/{fileId}"}}}}}}', true)); + $this->parents = new Google_Service_Drive_Parents_Resource($this, $this->serviceName, 'parents', json_decode('{"methods": {"delete": {"id": "drive.parents.delete", "path": "files/{fileId}/parents/{parentId}", "httpMethod": "DELETE", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "parentId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "get": {"id": "drive.parents.get", "path": "files/{fileId}/parents/{parentId}", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "parentId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ParentReference"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "insert": {"id": "drive.parents.insert", "path": "files/{fileId}/parents", "httpMethod": "POST", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ParentReference"}, "response": {"$ref": "ParentReference"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "list": {"id": "drive.parents.list", "path": "files/{fileId}/parents", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ParentList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}}}', true)); + $this->permissions = new Google_Service_Drive_Permissions_Resource($this, $this->serviceName, 'permissions', json_decode('{"methods": {"delete": {"id": "drive.permissions.delete", "path": "files/{fileId}/permissions/{permissionId}", "httpMethod": "DELETE", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "permissionId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "get": {"id": "drive.permissions.get", "path": "files/{fileId}/permissions/{permissionId}", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "permissionId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Permission"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "insert": {"id": "drive.permissions.insert", "path": "files/{fileId}/permissions", "httpMethod": "POST", "parameters": {"emailMessage": {"type": "string", "location": "query"}, "fileId": {"type": "string", "required": true, "location": "path"}, "sendNotificationEmails": {"type": "boolean", "default": "true", "location": "query"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "list": {"id": "drive.permissions.list", "path": "files/{fileId}/permissions", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "PermissionList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "patch": {"id": "drive.permissions.patch", "path": "files/{fileId}/permissions/{permissionId}", "httpMethod": "PATCH", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "permissionId": {"type": "string", "required": true, "location": "path"}, "transferOwnership": {"type": "boolean", "default": "false", "location": "query"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "update": {"id": "drive.permissions.update", "path": "files/{fileId}/permissions/{permissionId}", "httpMethod": "PUT", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "permissionId": {"type": "string", "required": true, "location": "path"}, "transferOwnership": {"type": "boolean", "default": "false", "location": "query"}}, "request": {"$ref": "Permission"}, "response": {"$ref": "Permission"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}}}', true)); + $this->properties = new Google_Service_Drive_Properties_Resource($this, $this->serviceName, 'properties', json_decode('{"methods": {"delete": {"id": "drive.properties.delete", "path": "files/{fileId}/properties/{propertyKey}", "httpMethod": "DELETE", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "propertyKey": {"type": "string", "required": true, "location": "path"}, "visibility": {"type": "string", "default": "private", "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "get": {"id": "drive.properties.get", "path": "files/{fileId}/properties/{propertyKey}", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "propertyKey": {"type": "string", "required": true, "location": "path"}, "visibility": {"type": "string", "default": "private", "location": "query"}}, "response": {"$ref": "Property"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "insert": {"id": "drive.properties.insert", "path": "files/{fileId}/properties", "httpMethod": "POST", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Property"}, "response": {"$ref": "Property"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "list": {"id": "drive.properties.list", "path": "files/{fileId}/properties", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "PropertyList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "patch": {"id": "drive.properties.patch", "path": "files/{fileId}/properties/{propertyKey}", "httpMethod": "PATCH", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "propertyKey": {"type": "string", "required": true, "location": "path"}, "visibility": {"type": "string", "default": "private", "location": "query"}}, "request": {"$ref": "Property"}, "response": {"$ref": "Property"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "update": {"id": "drive.properties.update", "path": "files/{fileId}/properties/{propertyKey}", "httpMethod": "PUT", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "propertyKey": {"type": "string", "required": true, "location": "path"}, "visibility": {"type": "string", "default": "private", "location": "query"}}, "request": {"$ref": "Property"}, "response": {"$ref": "Property"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}}}', true)); + $this->replies = new Google_Service_Drive_Replies_Resource($this, $this->serviceName, 'replies', json_decode('{"methods": {"delete": {"id": "drive.replies.delete", "path": "files/{fileId}/comments/{commentId}/replies/{replyId}", "httpMethod": "DELETE", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}, "replyId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "get": {"id": "drive.replies.get", "path": "files/{fileId}/comments/{commentId}/replies/{replyId}", "httpMethod": "GET", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}, "includeDeleted": {"type": "boolean", "default": "false", "location": "query"}, "replyId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CommentReply"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly"]}, "insert": {"id": "drive.replies.insert", "path": "files/{fileId}/comments/{commentId}/replies", "httpMethod": "POST", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "CommentReply"}, "response": {"$ref": "CommentReply"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "list": {"id": "drive.replies.list", "path": "files/{fileId}/comments/{commentId}/replies", "httpMethod": "GET", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}, "includeDeleted": {"type": "boolean", "default": "false", "location": "query"}, "maxResults": {"type": "integer", "default": "20", "format": "int32", "minimum": "0", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CommentReplyList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.readonly"]}, "patch": {"id": "drive.replies.patch", "path": "files/{fileId}/comments/{commentId}/replies/{replyId}", "httpMethod": "PATCH", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}, "replyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "CommentReply"}, "response": {"$ref": "CommentReply"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "update": {"id": "drive.replies.update", "path": "files/{fileId}/comments/{commentId}/replies/{replyId}", "httpMethod": "PUT", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "fileId": {"type": "string", "required": true, "location": "path"}, "replyId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "CommentReply"}, "response": {"$ref": "CommentReply"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}}}', true)); + $this->revisions = new Google_Service_Drive_Revisions_Resource($this, $this->serviceName, 'revisions', json_decode('{"methods": {"delete": {"id": "drive.revisions.delete", "path": "files/{fileId}/revisions/{revisionId}", "httpMethod": "DELETE", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "revisionId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "get": {"id": "drive.revisions.get", "path": "files/{fileId}/revisions/{revisionId}", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "revisionId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Revision"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "list": {"id": "drive.revisions.list", "path": "files/{fileId}/revisions", "httpMethod": "GET", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "RevisionList"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]}, "patch": {"id": "drive.revisions.patch", "path": "files/{fileId}/revisions/{revisionId}", "httpMethod": "PATCH", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "revisionId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Revision"}, "response": {"$ref": "Revision"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}, "update": {"id": "drive.revisions.update", "path": "files/{fileId}/revisions/{revisionId}", "httpMethod": "PUT", "parameters": {"fileId": {"type": "string", "required": true, "location": "path"}, "revisionId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Revision"}, "response": {"$ref": "Revision"}, "scopes": ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.file"]}}}', true)); + + } +} + + + /** + * The "about" collection of methods. + * Typical usage is: + *
+ * $driveService = new Google_DriveService(...);
+ * $about = $driveService->about;
+ *
+ */
+ 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 shared files and public files the user has opened. When set to false, this counts only change IDs for owned files and any shared or public files that the user has explictly added to a folder in Drive.
+ * @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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_About($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "apps" collection of methods.
+ * Typical usage is:
+ *
+ * $driveService = new Google_DriveService(...);
+ * $apps = $driveService->apps;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_App($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Lists a user's installed apps. (apps.list)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Drive_AppList
+ */
+ public function listApps($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_AppList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "changes" collection of methods.
+ * Typical usage is:
+ *
+ * $driveService = new Google_DriveService(...);
+ * $changes = $driveService->changes;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_Change($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Lists the changes for a user. (changes.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeDeleted Whether to include deleted items.
+ * @opt_param bool includeSubscribed Whether to include shared files and public files the user has opened. When set to false, the list will include owned files plus any shared or public files the user has explictly added to a folder in Drive.
+ * @opt_param int maxResults Maximum number of changes to return.
+ * @opt_param string pageToken Page token for changes.
+ * @opt_param string startChangeId Change ID to start listing changes from.
+ * @return Google_Service_Drive_ChangeList
+ */
+ public function listChanges($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_ChangeList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "children" collection of methods.
+ * Typical usage is:
+ *
+ * $driveService = new Google_DriveService(...);
+ * $children = $driveService->children;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * Gets a specific child reference. (children.get)
+ *
+ * @param string $folderId The ID of the folder.
+ * @param string $childId The ID of the child.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Drive_ChildReference
+ */
+ public function get($folderId, $childId, $optParams = array()) {
+ $params = array('folderId' => $folderId, 'childId' => $childId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_ChildReference($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Inserts a file into a folder. (children.insert)
+ *
+ * @param string $folderId The ID of the folder.
+ * @param Google_ChildReference $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_ChildReference($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Lists a folder's children. (children.list)
+ *
+ * @param string $folderId The ID of the folder.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of children to return.
+ * @opt_param string pageToken Page token for children.
+ * @opt_param string q Query string for searching children.
+ * @return Google_Service_Drive_ChildList
+ */
+ public function listChildren($folderId, $optParams = array()) {
+ $params = array('folderId' => $folderId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_ChildList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "comments" collection of methods.
+ * Typical usage is:
+ *
+ * $driveService = new Google_DriveService(...);
+ * $comments = $driveService->comments;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_Comment($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_Comment($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Lists a file's comments. (comments.list)
+ *
+ * @param string $fileId The ID of the file.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool includeDeleted If set, all comments and replies, including deleted comments and replies (with content stripped) will be returned.
+ * @opt_param int maxResults The maximum number of discussions to include in the response, used for paging.
+ * @opt_param string pageToken The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
+ * @opt_param string updatedMin Only discussions that were updated after this timestamp will be returned. Formatted as an RFC 3339 timestamp.
+ * @return Google_Service_Drive_CommentList
+ */
+ public function listComments($fileId, $optParams = array()) {
+ $params = array('fileId' => $fileId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_CommentList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Updates an existing comment. This method supports patch semantics. (comments.patch)
+ *
+ * @param string $fileId The ID of the file.
+ * @param string $commentId The ID of the comment.
+ * @param Google_Comment $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_Comment($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_Comment($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "files" collection of methods.
+ * Typical usage is:
+ *
+ * $driveService = new Google_DriveService(...);
+ * $files = $driveService->files;
+ *
+ */
+ 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 bool ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
+ * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
+ * @opt_param bool pinned Whether to pin the head revision of the new copy.
+ * @opt_param string timedTextLanguage The language of the timed text.
+ * @opt_param string timedTextTrackName The timed text track name.
+ * @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);
+ $data = $this->__call('copy', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_DriveFile($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * Gets a file's metadata by ID. (files.get)
+ *
+ * @param string $fileId The ID for the file in question.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projection This parameter is deprecated and has no function.
+ * @opt_param bool updateViewedDate Whether to update the view date after successfully retrieving the file.
+ * @return Google_Service_Drive_DriveFile
+ */
+ public function get($fileId, $optParams = array()) {
+ $params = array('fileId' => $fileId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_DriveFile($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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 ocr Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
+ * @opt_param string ocrLanguage If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
+ * @opt_param bool pinned Whether to pin the head revision of the uploaded file.
+ * @opt_param string timedTextLanguage The language of the timed text.
+ * @opt_param string timedTextTrackName The timed text track name.
+ * @opt_param bool useContentAsIndexableText Whether to use the content as indexable 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_DriveFile($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Lists the user's files. (files.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param int maxResults Maximum number of files to return.
+ * @opt_param string pageToken Page token for files.
+ * @opt_param string projection This parameter is deprecated and has no function.
+ * @opt_param string q Query string for searching files.
+ * @return Google_Service_Drive_FileList
+ */
+ public function listFiles($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_FileList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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 bool convert Whether to convert this file to the corresponding Google Docs format.
+ * @opt_param bool newRevision Whether a blob upload should create a new revision. If not set or false, the blob data in the current head revision is replaced. If 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 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 setModifiedDate Whether to set the modified date with the supplied modified date.
+ * @opt_param string timedTextLanguage The language of the timed text.
+ * @opt_param string timedTextTrackName The timed text track name.
+ * @opt_param bool updateViewedDate Whether to update the view date after successfully updating the file.
+ * @opt_param bool useContentAsIndexableText Whether to use the content as indexable text.
+ * @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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_DriveFile($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('touch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_DriveFile($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('trash', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_DriveFile($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('untrash', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_DriveFile($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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 bool convert Whether to convert this file to the corresponding Google Docs format.
+ * @opt_param bool newRevision Whether a blob upload should create a new revision. If not set or false, the blob data in the current head revision is replaced. If 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 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 setModifiedDate Whether to set the modified date with the supplied modified date.
+ * @opt_param string timedTextLanguage The language of the timed text.
+ * @opt_param string timedTextTrackName The timed text track name.
+ * @opt_param bool updateViewedDate Whether to update the view date after successfully updating the file.
+ * @opt_param bool useContentAsIndexableText Whether to use the content as indexable text.
+ * @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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_DriveFile($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "parents" collection of methods.
+ * Typical usage is:
+ *
+ * $driveService = new Google_DriveService(...);
+ * $parents = $driveService->parents;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_ParentReference($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_ParentReference($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Lists a file's parents. (parents.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_ParentList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "permissions" collection of methods.
+ * Typical usage is:
+ *
+ * $driveService = new Google_DriveService(...);
+ * $permissions = $driveService->permissions;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_Permission($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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.
+ * @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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_Permission($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Lists a file's permissions. (permissions.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_PermissionList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_Permission($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_Permission($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "properties" collection of methods.
+ * Typical usage is:
+ *
+ * $driveService = new Google_DriveService(...);
+ * $properties = $driveService->properties;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_Property($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_Property($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Lists a file's properties. (properties.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_PropertyList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_Property($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_Property($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "replies" collection of methods.
+ * Typical usage is:
+ *
+ * $driveService = new Google_DriveService(...);
+ * $replies = $driveService->replies;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_CommentReply($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_CommentReply($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Lists all of the replies to a comment. (replies.list)
+ *
+ * @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, 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.
+ * @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.
+ * @return Google_Service_Drive_CommentReplyList
+ */
+ public function listReplies($fileId, $commentId, $optParams = array()) {
+ $params = array('fileId' => $fileId, 'commentId' => $commentId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_CommentReplyList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_CommentReply($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_CommentReply($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "revisions" collection of methods.
+ * Typical usage is:
+ *
+ * $driveService = new Google_DriveService(...);
+ * $revisions = $driveService->revisions;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_Revision($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Lists a file's revisions. (revisions.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_RevisionList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_Revision($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Drive_Revision($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Drive_About
+ extends Google_Collection {
+ protected $__additionalRoleInfoType = 'Google_Service_Drive_AboutAdditionalRoleInfo';
+ protected $__additionalRoleInfoDataType = 'array';
+ public $additionalRoleInfo;
+ public $domainSharingPolicy;
+ public $etag;
+ protected $__exportFormatsType = 'Google_Service_Drive_AboutExportFormats';
+ protected $__exportFormatsDataType = 'array';
+ public $exportFormats;
+ protected $__featuresType = 'Google_Service_Drive_AboutFeatures';
+ protected $__featuresDataType = 'array';
+ public $features;
+ protected $__importFormatsType = 'Google_Service_Drive_AboutImportFormats';
+ protected $__importFormatsDataType = 'array';
+ public $importFormats;
+ public $isCurrentAppInstalled;
+ public $kind;
+ public $largestChangeId;
+ protected $__maxUploadSizesType = 'Google_Service_Drive_AboutMaxUploadSizes';
+ protected $__maxUploadSizesDataType = 'array';
+ public $maxUploadSizes;
+ public $name;
+ public $permissionId;
+ public $quotaBytesTotal;
+ public $quotaBytesUsed;
+ public $quotaBytesUsedAggregate;
+ public $quotaBytesUsedInTrash;
+ public $remainingChangeIds;
+ public $rootFolderId;
+ public $selfLink;
+ protected $__userType = 'Google_Service_Drive_User';
+ protected $__userDataType = '';
+ public $user;
+ public function setAdditionalRoleInfo($additionalRoleInfo) {
+ $this->additionalRoleInfo = $additionalRoleInfo;
+ }
+ public function getAdditionalRoleInfo() {
+ return $this->additionalRoleInfo;
+ }
+ public function setDomainSharingPolicy($domainSharingPolicy) {
+ $this->domainSharingPolicy = $domainSharingPolicy;
+ }
+ public function getDomainSharingPolicy() {
+ return $this->domainSharingPolicy;
+ }
+ public function setEtag($etag) {
+ $this->etag = $etag;
+ }
+ public function getEtag() {
+ return $this->etag;
+ }
+ public function setExportFormats($exportFormats) {
+ $this->exportFormats = $exportFormats;
+ }
+ public function getExportFormats() {
+ return $this->exportFormats;
+ }
+ public function setFeatures($features) {
+ $this->features = $features;
+ }
+ public function getFeatures() {
+ return $this->features;
+ }
+ public function setImportFormats($importFormats) {
+ $this->importFormats = $importFormats;
+ }
+ public function getImportFormats() {
+ return $this->importFormats;
+ }
+ public function setIsCurrentAppInstalled($isCurrentAppInstalled) {
+ $this->isCurrentAppInstalled = $isCurrentAppInstalled;
+ }
+ public function getIsCurrentAppInstalled() {
+ return $this->isCurrentAppInstalled;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setLargestChangeId($largestChangeId) {
+ $this->largestChangeId = $largestChangeId;
+ }
+ public function getLargestChangeId() {
+ return $this->largestChangeId;
+ }
+ public function setMaxUploadSizes($maxUploadSizes) {
+ $this->maxUploadSizes = $maxUploadSizes;
+ }
+ public function getMaxUploadSizes() {
+ return $this->maxUploadSizes;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setPermissionId($permissionId) {
+ $this->permissionId = $permissionId;
+ }
+ public function getPermissionId() {
+ return $this->permissionId;
+ }
+ public function setQuotaBytesTotal($quotaBytesTotal) {
+ $this->quotaBytesTotal = $quotaBytesTotal;
+ }
+ public function getQuotaBytesTotal() {
+ return $this->quotaBytesTotal;
+ }
+ public function setQuotaBytesUsed($quotaBytesUsed) {
+ $this->quotaBytesUsed = $quotaBytesUsed;
+ }
+ public function getQuotaBytesUsed() {
+ return $this->quotaBytesUsed;
+ }
+ public function setQuotaBytesUsedAggregate($quotaBytesUsedAggregate) {
+ $this->quotaBytesUsedAggregate = $quotaBytesUsedAggregate;
+ }
+ public function getQuotaBytesUsedAggregate() {
+ return $this->quotaBytesUsedAggregate;
+ }
+ public function setQuotaBytesUsedInTrash($quotaBytesUsedInTrash) {
+ $this->quotaBytesUsedInTrash = $quotaBytesUsedInTrash;
+ }
+ public function getQuotaBytesUsedInTrash() {
+ return $this->quotaBytesUsedInTrash;
+ }
+ public function setRemainingChangeIds($remainingChangeIds) {
+ $this->remainingChangeIds = $remainingChangeIds;
+ }
+ public function getRemainingChangeIds() {
+ return $this->remainingChangeIds;
+ }
+ public function setRootFolderId($rootFolderId) {
+ $this->rootFolderId = $rootFolderId;
+ }
+ public function getRootFolderId() {
+ return $this->rootFolderId;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+ public function setUser(Google_Service_Drive_User$user) {
+ $this->user = $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 $roleSets;
+ public $type;
+ public function setRoleSets($roleSets) {
+ $this->roleSets = $roleSets;
+ }
+ public function getRoleSets() {
+ return $this->roleSets;
+ }
+ public function setType($type) {
+ $this->type = $type;
+ }
+ public function getType() {
+ return $this->type;
+ }
+}
+
+class Google_Service_Drive_AboutAdditionalRoleInfoRoleSets
+ extends Google_Collection {
+ public $additionalRoles;
+ public $primaryRole;
+ public function setAdditionalRoles($additionalRoles) {
+ $this->additionalRoles = $additionalRoles;
+ }
+ public function getAdditionalRoles() {
+ return $this->additionalRoles;
+ }
+ public function setPrimaryRole($primaryRole) {
+ $this->primaryRole = $primaryRole;
+ }
+ public function getPrimaryRole() {
+ return $this->primaryRole;
+ }
+}
+
+class Google_Service_Drive_AboutExportFormats
+ extends Google_Collection {
+ public $source;
+ public $targets;
+ public function setSource($source) {
+ $this->source = $source;
+ }
+ public function getSource() {
+ return $this->source;
+ }
+ public function setTargets($targets) {
+ $this->targets = $targets;
+ }
+ public function getTargets() {
+ return $this->targets;
+ }
+}
+
+class Google_Service_Drive_AboutFeatures
+ extends Google_Model {
+ public $featureName;
+ public $featureRate;
+ public function setFeatureName($featureName) {
+ $this->featureName = $featureName;
+ }
+ public function getFeatureName() {
+ return $this->featureName;
+ }
+ public function setFeatureRate($featureRate) {
+ $this->featureRate = $featureRate;
+ }
+ public function getFeatureRate() {
+ return $this->featureRate;
+ }
+}
+
+class Google_Service_Drive_AboutImportFormats
+ extends Google_Collection {
+ public $source;
+ public $targets;
+ public function setSource($source) {
+ $this->source = $source;
+ }
+ public function getSource() {
+ return $this->source;
+ }
+ public function setTargets($targets) {
+ $this->targets = $targets;
+ }
+ public function getTargets() {
+ return $this->targets;
+ }
+}
+
+class Google_Service_Drive_AboutMaxUploadSizes
+ extends Google_Model {
+ public $size;
+ public $type;
+ public function setSize($size) {
+ $this->size = $size;
+ }
+ public function getSize() {
+ return $this->size;
+ }
+ public function setType($type) {
+ $this->type = $type;
+ }
+ public function getType() {
+ return $this->type;
+ }
+}
+
+class Google_Service_Drive_App
+ extends Google_Collection {
+ public $authorized;
+ protected $__iconsType = 'Google_Service_Drive_AppIcons';
+ protected $__iconsDataType = 'array';
+ public $icons;
+ public $id;
+ public $installed;
+ public $kind;
+ public $longDescription;
+ public $name;
+ public $objectType;
+ public $primaryFileExtensions;
+ public $primaryMimeTypes;
+ public $productId;
+ public $productUrl;
+ public $secondaryFileExtensions;
+ public $secondaryMimeTypes;
+ public $shortDescription;
+ public $supportsCreate;
+ public $supportsImport;
+ public $supportsMultiOpen;
+ public $useByDefault;
+ public function setAuthorized($authorized) {
+ $this->authorized = $authorized;
+ }
+ public function getAuthorized() {
+ return $this->authorized;
+ }
+ public function setIcons($icons) {
+ $this->icons = $icons;
+ }
+ public function getIcons() {
+ return $this->icons;
+ }
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setInstalled($installed) {
+ $this->installed = $installed;
+ }
+ public function getInstalled() {
+ return $this->installed;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setLongDescription($longDescription) {
+ $this->longDescription = $longDescription;
+ }
+ public function getLongDescription() {
+ return $this->longDescription;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setObjectType($objectType) {
+ $this->objectType = $objectType;
+ }
+ public function getObjectType() {
+ return $this->objectType;
+ }
+ public function setPrimaryFileExtensions($primaryFileExtensions) {
+ $this->primaryFileExtensions = $primaryFileExtensions;
+ }
+ public function getPrimaryFileExtensions() {
+ return $this->primaryFileExtensions;
+ }
+ public function setPrimaryMimeTypes($primaryMimeTypes) {
+ $this->primaryMimeTypes = $primaryMimeTypes;
+ }
+ public function getPrimaryMimeTypes() {
+ return $this->primaryMimeTypes;
+ }
+ public function setProductId($productId) {
+ $this->productId = $productId;
+ }
+ public function getProductId() {
+ return $this->productId;
+ }
+ public function setProductUrl($productUrl) {
+ $this->productUrl = $productUrl;
+ }
+ public function getProductUrl() {
+ return $this->productUrl;
+ }
+ public function setSecondaryFileExtensions($secondaryFileExtensions) {
+ $this->secondaryFileExtensions = $secondaryFileExtensions;
+ }
+ public function getSecondaryFileExtensions() {
+ return $this->secondaryFileExtensions;
+ }
+ public function setSecondaryMimeTypes($secondaryMimeTypes) {
+ $this->secondaryMimeTypes = $secondaryMimeTypes;
+ }
+ public function getSecondaryMimeTypes() {
+ return $this->secondaryMimeTypes;
+ }
+ public function setShortDescription($shortDescription) {
+ $this->shortDescription = $shortDescription;
+ }
+ public function getShortDescription() {
+ return $this->shortDescription;
+ }
+ public function setSupportsCreate($supportsCreate) {
+ $this->supportsCreate = $supportsCreate;
+ }
+ public function getSupportsCreate() {
+ return $this->supportsCreate;
+ }
+ public function setSupportsImport($supportsImport) {
+ $this->supportsImport = $supportsImport;
+ }
+ public function getSupportsImport() {
+ return $this->supportsImport;
+ }
+ public function setSupportsMultiOpen($supportsMultiOpen) {
+ $this->supportsMultiOpen = $supportsMultiOpen;
+ }
+ public function getSupportsMultiOpen() {
+ return $this->supportsMultiOpen;
+ }
+ public function setUseByDefault($useByDefault) {
+ $this->useByDefault = $useByDefault;
+ }
+ public function getUseByDefault() {
+ return $this->useByDefault;
+ }
+}
+
+class Google_Service_Drive_AppIcons
+ extends Google_Model {
+ public $category;
+ public $iconUrl;
+ public $size;
+ public function setCategory($category) {
+ $this->category = $category;
+ }
+ public function getCategory() {
+ return $this->category;
+ }
+ public function setIconUrl($iconUrl) {
+ $this->iconUrl = $iconUrl;
+ }
+ public function getIconUrl() {
+ return $this->iconUrl;
+ }
+ public function setSize($size) {
+ $this->size = $size;
+ }
+ public function getSize() {
+ return $this->size;
+ }
+}
+
+class Google_Service_Drive_AppList
+ extends Google_Collection {
+ public $etag;
+ protected $__itemsType = 'Google_Service_Drive_App';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $selfLink;
+ 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 setSelfLink($selfLink) {
+ $this->selfLink = $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 $file;
+ public $fileId;
+ public $id;
+ public $kind;
+ public $selfLink;
+ public function setDeleted($deleted) {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted() {
+ return $this->deleted;
+ }
+ public function setFile(Google_Service_Drive_DriveFile$file) {
+ $this->file = $file;
+ }
+ public function getFile() {
+ return $this->file;
+ }
+ public function setFileId($fileId) {
+ $this->fileId = $fileId;
+ }
+ public function getFileId() {
+ return $this->fileId;
+ }
+ 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;
+ }
+}
+
+class Google_Service_Drive_ChangeList
+ extends Google_Collection {
+ public $etag;
+ protected $__itemsType = 'Google_Service_Drive_Change';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $largestChangeId;
+ public $nextLink;
+ public $nextPageToken;
+ public $selfLink;
+ 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 setLargestChangeId($largestChangeId) {
+ $this->largestChangeId = $largestChangeId;
+ }
+ public function getLargestChangeId() {
+ return $this->largestChangeId;
+ }
+ public function setNextLink($nextLink) {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink() {
+ return $this->nextLink;
+ }
+ 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_Drive_ChildList
+ extends Google_Collection {
+ public $etag;
+ protected $__itemsType = 'Google_Service_Drive_ChildReference';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $nextLink;
+ public $nextPageToken;
+ public $selfLink;
+ 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 setNextLink($nextLink) {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink() {
+ return $this->nextLink;
+ }
+ 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_Drive_ChildReference
+ extends Google_Model {
+ public $childLink;
+ public $id;
+ public $kind;
+ public $selfLink;
+ public function setChildLink($childLink) {
+ $this->childLink = $childLink;
+ }
+ public function getChildLink() {
+ return $this->childLink;
+ }
+ 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;
+ }
+}
+
+class Google_Service_Drive_Comment
+ extends Google_Collection {
+ public $anchor;
+ protected $__authorType = 'Google_Service_Drive_User';
+ protected $__authorDataType = '';
+ public $author;
+ public $commentId;
+ public $content;
+ protected $__contextType = 'Google_Service_Drive_CommentContext';
+ protected $__contextDataType = '';
+ public $context;
+ public $createdDate;
+ public $deleted;
+ public $fileId;
+ public $fileTitle;
+ public $htmlContent;
+ public $kind;
+ public $modifiedDate;
+ protected $__repliesType = 'Google_Service_Drive_CommentReply';
+ protected $__repliesDataType = 'array';
+ public $replies;
+ public $selfLink;
+ public $status;
+ public function setAnchor($anchor) {
+ $this->anchor = $anchor;
+ }
+ public function getAnchor() {
+ return $this->anchor;
+ }
+ public function setAuthor(Google_Service_Drive_User$author) {
+ $this->author = $author;
+ }
+ public function getAuthor() {
+ return $this->author;
+ }
+ public function setCommentId($commentId) {
+ $this->commentId = $commentId;
+ }
+ public function getCommentId() {
+ return $this->commentId;
+ }
+ public function setContent($content) {
+ $this->content = $content;
+ }
+ public function getContent() {
+ return $this->content;
+ }
+ public function setContext(Google_Service_Drive_CommentContext$context) {
+ $this->context = $context;
+ }
+ public function getContext() {
+ return $this->context;
+ }
+ public function setCreatedDate($createdDate) {
+ $this->createdDate = $createdDate;
+ }
+ public function getCreatedDate() {
+ return $this->createdDate;
+ }
+ public function setDeleted($deleted) {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted() {
+ return $this->deleted;
+ }
+ public function setFileId($fileId) {
+ $this->fileId = $fileId;
+ }
+ public function getFileId() {
+ return $this->fileId;
+ }
+ public function setFileTitle($fileTitle) {
+ $this->fileTitle = $fileTitle;
+ }
+ public function getFileTitle() {
+ return $this->fileTitle;
+ }
+ public function setHtmlContent($htmlContent) {
+ $this->htmlContent = $htmlContent;
+ }
+ public function getHtmlContent() {
+ return $this->htmlContent;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setModifiedDate($modifiedDate) {
+ $this->modifiedDate = $modifiedDate;
+ }
+ public function getModifiedDate() {
+ return $this->modifiedDate;
+ }
+ public function setReplies($replies) {
+ $this->replies = $replies;
+ }
+ public function getReplies() {
+ return $this->replies;
+ }
+ 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_Drive_CommentContext
+ 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_Drive_CommentList
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Drive_Comment';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $nextLink;
+ public $nextPageToken;
+ public $selfLink;
+ 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 setNextLink($nextLink) {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink() {
+ return $this->nextLink;
+ }
+ 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_Drive_CommentReply
+ extends Google_Model {
+ protected $__authorType = 'Google_Service_Drive_User';
+ protected $__authorDataType = '';
+ public $author;
+ 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 getAuthor() {
+ return $this->author;
+ }
+ public function setContent($content) {
+ $this->content = $content;
+ }
+ public function getContent() {
+ return $this->content;
+ }
+ public function setCreatedDate($createdDate) {
+ $this->createdDate = $createdDate;
+ }
+ public function getCreatedDate() {
+ return $this->createdDate;
+ }
+ public function setDeleted($deleted) {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted() {
+ return $this->deleted;
+ }
+ public function setHtmlContent($htmlContent) {
+ $this->htmlContent = $htmlContent;
+ }
+ public function getHtmlContent() {
+ return $this->htmlContent;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setModifiedDate($modifiedDate) {
+ $this->modifiedDate = $modifiedDate;
+ }
+ public function getModifiedDate() {
+ return $this->modifiedDate;
+ }
+ public function setReplyId($replyId) {
+ $this->replyId = $replyId;
+ }
+ public function getReplyId() {
+ return $this->replyId;
+ }
+ public function setVerb($verb) {
+ $this->verb = $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 $items;
+ public $kind;
+ public $nextLink;
+ public $nextPageToken;
+ public $selfLink;
+ 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 setNextLink($nextLink) {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink() {
+ return $this->nextLink;
+ }
+ 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_Drive_DriveFile
+ extends Google_Collection {
+ public $alternateLink;
+ public $appDataContents;
+ public $createdDate;
+ public $defaultOpenWithLink;
+ public $description;
+ public $downloadUrl;
+ public $editable;
+ public $embedLink;
+ public $etag;
+ public $explicitlyTrashed;
+ public $exportLinks;
+ public $fileExtension;
+ public $fileSize;
+ public $iconLink;
+ public $id;
+ protected $__imageMediaMetadataType = 'Google_Service_Drive_DriveFileImageMediaMetadata';
+ protected $__imageMediaMetadataDataType = '';
+ public $imageMediaMetadata;
+ protected $__indexableTextType = 'Google_Service_Drive_DriveFileIndexableText';
+ protected $__indexableTextDataType = '';
+ public $indexableText;
+ public $kind;
+ protected $__labelsType = 'Google_Service_Drive_DriveFileLabels';
+ protected $__labelsDataType = '';
+ public $labels;
+ protected $__lastModifyingUserType = 'Google_Service_Drive_User';
+ protected $__lastModifyingUserDataType = '';
+ public $lastModifyingUser;
+ public $lastModifyingUserName;
+ public $lastViewedByMeDate;
+ public $md5Checksum;
+ public $mimeType;
+ public $modifiedByMeDate;
+ public $modifiedDate;
+ public $openWithLinks;
+ public $originalFilename;
+ public $ownerNames;
+ protected $__ownersType = 'Google_Service_Drive_User';
+ protected $__ownersDataType = 'array';
+ public $owners;
+ protected $__parentsType = 'Google_Service_Drive_ParentReference';
+ protected $__parentsDataType = 'array';
+ public $parents;
+ public $quotaBytesUsed;
+ public $selfLink;
+ public $shared;
+ public $sharedWithMeDate;
+ protected $__thumbnailType = 'Google_Service_Drive_DriveFileThumbnail';
+ protected $__thumbnailDataType = '';
+ public $thumbnail;
+ public $thumbnailLink;
+ public $title;
+ protected $__userPermissionType = 'Google_Service_Drive_Permission';
+ protected $__userPermissionDataType = '';
+ public $userPermission;
+ 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 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 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 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 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 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 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_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 $location;
+ public $maxApertureValue;
+ public $meteringMode;
+ public $rotation;
+ public $sensor;
+ public $subjectDistance;
+ public $whiteBalance;
+ public $width;
+ public function setAperture($aperture) {
+ $this->aperture = $aperture;
+ }
+ public function getAperture() {
+ return $this->aperture;
+ }
+ public function setCameraMake($cameraMake) {
+ $this->cameraMake = $cameraMake;
+ }
+ public function getCameraMake() {
+ return $this->cameraMake;
+ }
+ public function setCameraModel($cameraModel) {
+ $this->cameraModel = $cameraModel;
+ }
+ public function getCameraModel() {
+ return $this->cameraModel;
+ }
+ public function setColorSpace($colorSpace) {
+ $this->colorSpace = $colorSpace;
+ }
+ public function getColorSpace() {
+ return $this->colorSpace;
+ }
+ public function setDate($date) {
+ $this->date = $date;
+ }
+ public function getDate() {
+ return $this->date;
+ }
+ public function setExposureBias($exposureBias) {
+ $this->exposureBias = $exposureBias;
+ }
+ public function getExposureBias() {
+ return $this->exposureBias;
+ }
+ public function setExposureMode($exposureMode) {
+ $this->exposureMode = $exposureMode;
+ }
+ public function getExposureMode() {
+ return $this->exposureMode;
+ }
+ public function setExposureTime($exposureTime) {
+ $this->exposureTime = $exposureTime;
+ }
+ public function getExposureTime() {
+ return $this->exposureTime;
+ }
+ public function setFlashUsed($flashUsed) {
+ $this->flashUsed = $flashUsed;
+ }
+ public function getFlashUsed() {
+ return $this->flashUsed;
+ }
+ public function setFocalLength($focalLength) {
+ $this->focalLength = $focalLength;
+ }
+ public function getFocalLength() {
+ return $this->focalLength;
+ }
+ public function setHeight($height) {
+ $this->height = $height;
+ }
+ public function getHeight() {
+ return $this->height;
+ }
+ public function setIsoSpeed($isoSpeed) {
+ $this->isoSpeed = $isoSpeed;
+ }
+ public function getIsoSpeed() {
+ return $this->isoSpeed;
+ }
+ public function setLens($lens) {
+ $this->lens = $lens;
+ }
+ public function getLens() {
+ return $this->lens;
+ }
+ public function setLocation(Google_Service_Drive_DriveFileImageMediaMetadataLocation$location) {
+ $this->location = $location;
+ }
+ public function getLocation() {
+ return $this->location;
+ }
+ public function setMaxApertureValue($maxApertureValue) {
+ $this->maxApertureValue = $maxApertureValue;
+ }
+ public function getMaxApertureValue() {
+ return $this->maxApertureValue;
+ }
+ public function setMeteringMode($meteringMode) {
+ $this->meteringMode = $meteringMode;
+ }
+ public function getMeteringMode() {
+ return $this->meteringMode;
+ }
+ public function setRotation($rotation) {
+ $this->rotation = $rotation;
+ }
+ public function getRotation() {
+ return $this->rotation;
+ }
+ public function setSensor($sensor) {
+ $this->sensor = $sensor;
+ }
+ public function getSensor() {
+ return $this->sensor;
+ }
+ public function setSubjectDistance($subjectDistance) {
+ $this->subjectDistance = $subjectDistance;
+ }
+ public function getSubjectDistance() {
+ return $this->subjectDistance;
+ }
+ public function setWhiteBalance($whiteBalance) {
+ $this->whiteBalance = $whiteBalance;
+ }
+ public function getWhiteBalance() {
+ return $this->whiteBalance;
+ }
+ public function setWidth($width) {
+ $this->width = $width;
+ }
+ public function getWidth() {
+ return $this->width;
+ }
+}
+
+class Google_Service_Drive_DriveFileImageMediaMetadataLocation
+ 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_Drive_DriveFileIndexableText
+ extends Google_Model {
+ public $text;
+ public function setText($text) {
+ $this->text = $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;
+ public function setHidden($hidden) {
+ $this->hidden = $hidden;
+ }
+ public function getHidden() {
+ return $this->hidden;
+ }
+ public function setRestricted($restricted) {
+ $this->restricted = $restricted;
+ }
+ public function getRestricted() {
+ return $this->restricted;
+ }
+ public function setStarred($starred) {
+ $this->starred = $starred;
+ }
+ public function getStarred() {
+ return $this->starred;
+ }
+ public function setTrashed($trashed) {
+ $this->trashed = $trashed;
+ }
+ public function getTrashed() {
+ return $this->trashed;
+ }
+ public function setViewed($viewed) {
+ $this->viewed = $viewed;
+ }
+ public function getViewed() {
+ return $this->viewed;
+ }
+}
+
+class Google_Service_Drive_DriveFileThumbnail
+ extends Google_Model {
+ public $image;
+ public $mimeType;
+ public function setImage($image) {
+ $this->image = $image;
+ }
+ public function getImage() {
+ return $this->image;
+ }
+ public function setMimeType($mimeType) {
+ $this->mimeType = $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 $items;
+ public $kind;
+ public $nextLink;
+ public $nextPageToken;
+ public $selfLink;
+ 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 setNextLink($nextLink) {
+ $this->nextLink = $nextLink;
+ }
+ public function getNextLink() {
+ return $this->nextLink;
+ }
+ 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_Drive_ParentList
+ extends Google_Collection {
+ public $etag;
+ protected $__itemsType = 'Google_Service_Drive_ParentReference';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $selfLink;
+ 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 setSelfLink($selfLink) {
+ $this->selfLink = $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;
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setIsRoot($isRoot) {
+ $this->isRoot = $isRoot;
+ }
+ public function getIsRoot() {
+ return $this->isRoot;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setParentLink($parentLink) {
+ $this->parentLink = $parentLink;
+ }
+ public function getParentLink() {
+ return $this->parentLink;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_Drive_Permission
+ extends Google_Collection {
+ public $additionalRoles;
+ public $authKey;
+ 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 getAdditionalRoles() {
+ return $this->additionalRoles;
+ }
+ public function setAuthKey($authKey) {
+ $this->authKey = $authKey;
+ }
+ public function getAuthKey() {
+ return $this->authKey;
+ }
+ 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 setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setPhotoLink($photoLink) {
+ $this->photoLink = $photoLink;
+ }
+ public function getPhotoLink() {
+ return $this->photoLink;
+ }
+ public function setRole($role) {
+ $this->role = $role;
+ }
+ public function getRole() {
+ return $this->role;
+ }
+ 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 setValue($value) {
+ $this->value = $value;
+ }
+ public function getValue() {
+ return $this->value;
+ }
+ public function setWithLink($withLink) {
+ $this->withLink = $withLink;
+ }
+ public function getWithLink() {
+ return $this->withLink;
+ }
+}
+
+class Google_Service_Drive_PermissionList
+ extends Google_Collection {
+ public $etag;
+ protected $__itemsType = 'Google_Service_Drive_Permission';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $selfLink;
+ 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 setSelfLink($selfLink) {
+ $this->selfLink = $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;
+ public function setEtag($etag) {
+ $this->etag = $etag;
+ }
+ public function getEtag() {
+ return $this->etag;
+ }
+ public function setKey($key) {
+ $this->key = $key;
+ }
+ public function getKey() {
+ return $this->key;
+ }
+ 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 setValue($value) {
+ $this->value = $value;
+ }
+ public function getValue() {
+ return $this->value;
+ }
+ public function setVisibility($visibility) {
+ $this->visibility = $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 $items;
+ public $kind;
+ public $selfLink;
+ 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 setSelfLink($selfLink) {
+ $this->selfLink = $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 $lastModifyingUser;
+ 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 getDownloadUrl() {
+ return $this->downloadUrl;
+ }
+ public function setEtag($etag) {
+ $this->etag = $etag;
+ }
+ public function getEtag() {
+ return $this->etag;
+ }
+ public function setExportLinks($exportLinks) {
+ $this->exportLinks = $exportLinks;
+ }
+ public function getExportLinks() {
+ return $this->exportLinks;
+ }
+ public function setFileSize($fileSize) {
+ $this->fileSize = $fileSize;
+ }
+ public function getFileSize() {
+ return $this->fileSize;
+ }
+ 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 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 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 setModifiedDate($modifiedDate) {
+ $this->modifiedDate = $modifiedDate;
+ }
+ public function getModifiedDate() {
+ return $this->modifiedDate;
+ }
+ public function setOriginalFilename($originalFilename) {
+ $this->originalFilename = $originalFilename;
+ }
+ public function getOriginalFilename() {
+ return $this->originalFilename;
+ }
+ public function setPinned($pinned) {
+ $this->pinned = $pinned;
+ }
+ public function getPinned() {
+ return $this->pinned;
+ }
+ public function setPublishAuto($publishAuto) {
+ $this->publishAuto = $publishAuto;
+ }
+ public function getPublishAuto() {
+ return $this->publishAuto;
+ }
+ public function setPublished($published) {
+ $this->published = $published;
+ }
+ public function getPublished() {
+ return $this->published;
+ }
+ public function setPublishedLink($publishedLink) {
+ $this->publishedLink = $publishedLink;
+ }
+ public function getPublishedLink() {
+ return $this->publishedLink;
+ }
+ public function setPublishedOutsideDomain($publishedOutsideDomain) {
+ $this->publishedOutsideDomain = $publishedOutsideDomain;
+ }
+ public function getPublishedOutsideDomain() {
+ return $this->publishedOutsideDomain;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_Drive_RevisionList
+ extends Google_Collection {
+ public $etag;
+ protected $__itemsType = 'Google_Service_Drive_Revision';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $selfLink;
+ 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 setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_Drive_User
+ extends Google_Model {
+ public $displayName;
+ public $isAuthenticatedUser;
+ public $kind;
+ public $permissionId;
+ protected $__pictureType = 'Google_Service_Drive_UserPicture';
+ protected $__pictureDataType = '';
+ public $picture;
+ public function setDisplayName($displayName) {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName() {
+ return $this->displayName;
+ }
+ public function setIsAuthenticatedUser($isAuthenticatedUser) {
+ $this->isAuthenticatedUser = $isAuthenticatedUser;
+ }
+ public function getIsAuthenticatedUser() {
+ return $this->isAuthenticatedUser;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setPermissionId($permissionId) {
+ $this->permissionId = $permissionId;
+ }
+ public function getPermissionId() {
+ return $this->permissionId;
+ }
+ public function setPicture(Google_Service_Drive_UserPicture$picture) {
+ $this->picture = $picture;
+ }
+ public function getPicture() {
+ return $this->picture;
+ }
+}
+
+class Google_Service_Drive_UserPicture
+ extends Google_Model {
+ public $url;
+ public function setUrl($url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
diff --git a/src/Google/Service/Fusiontables.php b/src/Google/Service/Fusiontables.php
new file mode 100644
index 0000000..20b35e6
--- /dev/null
+++ b/src/Google/Service/Fusiontables.php
@@ -0,0 +1,1401 @@
+
+ * API for working with Fusion Tables data.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Fusiontables extends Google_Service { + public $column; + public $query; + public $style; + public $table; + public $template; + /** + * Constructs the internal representation of the Fusiontables service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'fusiontables/v1/'; + $this->version = 'v1'; + $this->serviceName = 'fusiontables'; + + $client->addService($this->serviceName, $this->version); + $this->column = new Google_Service_Fusiontables_Column_Resource($this, $this->serviceName, 'column', json_decode('{"methods": {"delete": {"id": "fusiontables.column.delete", "path": "tables/{tableId}/columns/{columnId}", "httpMethod": "DELETE", "parameters": {"columnId": {"type": "string", "required": true, "location": "path"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/fusiontables"]}, "get": {"id": "fusiontables.column.get", "path": "tables/{tableId}/columns/{columnId}", "httpMethod": "GET", "parameters": {"columnId": {"type": "string", "required": true, "location": "path"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Column"}, "scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"]}, "insert": {"id": "fusiontables.column.insert", "path": "tables/{tableId}/columns", "httpMethod": "POST", "parameters": {"tableId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Column"}, "response": {"$ref": "Column"}, "scopes": ["https://www.googleapis.com/auth/fusiontables"]}, "list": {"id": "fusiontables.column.list", "path": "tables/{tableId}/columns", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ColumnList"}, "scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"]}, "patch": {"id": "fusiontables.column.patch", "path": "tables/{tableId}/columns/{columnId}", "httpMethod": "PATCH", "parameters": {"columnId": {"type": "string", "required": true, "location": "path"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Column"}, "response": {"$ref": "Column"}, "scopes": ["https://www.googleapis.com/auth/fusiontables"]}, "update": {"id": "fusiontables.column.update", "path": "tables/{tableId}/columns/{columnId}", "httpMethod": "PUT", "parameters": {"columnId": {"type": "string", "required": true, "location": "path"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Column"}, "response": {"$ref": "Column"}, "scopes": ["https://www.googleapis.com/auth/fusiontables"]}}}', true)); + $this->query = new Google_Service_Fusiontables_Query_Resource($this, $this->serviceName, 'query', json_decode('{"methods": {"sql": {"id": "fusiontables.query.sql", "path": "query", "httpMethod": "POST", "parameters": {"hdrs": {"type": "boolean", "location": "query"}, "sql": {"type": "string", "required": true, "location": "query"}, "typed": {"type": "boolean", "location": "query"}}, "response": {"$ref": "Sqlresponse"}, "scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"]}, "sqlGet": {"id": "fusiontables.query.sqlGet", "path": "query", "httpMethod": "GET", "parameters": {"hdrs": {"type": "boolean", "location": "query"}, "sql": {"type": "string", "required": true, "location": "query"}, "typed": {"type": "boolean", "location": "query"}}, "response": {"$ref": "Sqlresponse"}, "scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"]}}}', true)); + $this->style = new Google_Service_Fusiontables_Style_Resource($this, $this->serviceName, 'style', json_decode('{"methods": {"delete": {"id": "fusiontables.style.delete", "path": "tables/{tableId}/styles/{styleId}", "httpMethod": "DELETE", "parameters": {"styleId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/fusiontables"]}, "get": {"id": "fusiontables.style.get", "path": "tables/{tableId}/styles/{styleId}", "httpMethod": "GET", "parameters": {"styleId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "StyleSetting"}, "scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"]}, "insert": {"id": "fusiontables.style.insert", "path": "tables/{tableId}/styles", "httpMethod": "POST", "parameters": {"tableId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "StyleSetting"}, "response": {"$ref": "StyleSetting"}, "scopes": ["https://www.googleapis.com/auth/fusiontables"]}, "list": {"id": "fusiontables.style.list", "path": "tables/{tableId}/styles", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "StyleSettingList"}, "scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"]}, "patch": {"id": "fusiontables.style.patch", "path": "tables/{tableId}/styles/{styleId}", "httpMethod": "PATCH", "parameters": {"styleId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "StyleSetting"}, "response": {"$ref": "StyleSetting"}, "scopes": ["https://www.googleapis.com/auth/fusiontables"]}, "update": {"id": "fusiontables.style.update", "path": "tables/{tableId}/styles/{styleId}", "httpMethod": "PUT", "parameters": {"styleId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "StyleSetting"}, "response": {"$ref": "StyleSetting"}, "scopes": ["https://www.googleapis.com/auth/fusiontables"]}}}', true)); + $this->table = new Google_Service_Fusiontables_Table_Resource($this, $this->serviceName, 'table', json_decode('{"methods": {"copy": {"id": "fusiontables.table.copy", "path": "tables/{tableId}/copy", "httpMethod": "POST", "parameters": {"copyPresentation": {"type": "boolean", "location": "query"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Table"}, "scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"]}, "delete": {"id": "fusiontables.table.delete", "path": "tables/{tableId}", "httpMethod": "DELETE", "parameters": {"tableId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/fusiontables"]}, "get": {"id": "fusiontables.table.get", "path": "tables/{tableId}", "httpMethod": "GET", "parameters": {"tableId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Table"}, "scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"]}, "importRows": {"id": "fusiontables.table.importRows", "path": "tables/{tableId}/import", "httpMethod": "POST", "parameters": {"delimiter": {"type": "string", "location": "query"}, "encoding": {"type": "string", "location": "query"}, "endLine": {"type": "integer", "format": "int32", "location": "query"}, "isStrict": {"type": "boolean", "location": "query"}, "startLine": {"type": "integer", "format": "int32", "location": "query"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Import"}, "scopes": ["https://www.googleapis.com/auth/fusiontables"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["application/octet-stream"], "maxSize": "100MB", "protocols": {"simple": {"multipart": true, "path": "/upload/fusiontables/v1/tables/{tableId}/import"}, "resumable": {"multipart": true, "path": "/resumable/upload/fusiontables/v1/tables/{tableId}/import"}}}}, "importTable": {"id": "fusiontables.table.importTable", "path": "tables/import", "httpMethod": "POST", "parameters": {"delimiter": {"type": "string", "location": "query"}, "encoding": {"type": "string", "location": "query"}, "name": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "Table"}, "scopes": ["https://www.googleapis.com/auth/fusiontables"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["application/octet-stream"], "maxSize": "100MB", "protocols": {"simple": {"multipart": true, "path": "/upload/fusiontables/v1/tables/import"}, "resumable": {"multipart": true, "path": "/resumable/upload/fusiontables/v1/tables/import"}}}}, "insert": {"id": "fusiontables.table.insert", "path": "tables", "httpMethod": "POST", "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "scopes": ["https://www.googleapis.com/auth/fusiontables"]}, "list": {"id": "fusiontables.table.list", "path": "tables", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "TableList"}, "scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"]}, "patch": {"id": "fusiontables.table.patch", "path": "tables/{tableId}", "httpMethod": "PATCH", "parameters": {"replaceViewDefinition": {"type": "boolean", "location": "query"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "scopes": ["https://www.googleapis.com/auth/fusiontables"]}, "update": {"id": "fusiontables.table.update", "path": "tables/{tableId}", "httpMethod": "PUT", "parameters": {"replaceViewDefinition": {"type": "boolean", "location": "query"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "scopes": ["https://www.googleapis.com/auth/fusiontables"]}}}', true)); + $this->template = new Google_Service_Fusiontables_Template_Resource($this, $this->serviceName, 'template', json_decode('{"methods": {"delete": {"id": "fusiontables.template.delete", "path": "tables/{tableId}/templates/{templateId}", "httpMethod": "DELETE", "parameters": {"tableId": {"type": "string", "required": true, "location": "path"}, "templateId": {"type": "integer", "required": true, "format": "int32", "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/fusiontables"]}, "get": {"id": "fusiontables.template.get", "path": "tables/{tableId}/templates/{templateId}", "httpMethod": "GET", "parameters": {"tableId": {"type": "string", "required": true, "location": "path"}, "templateId": {"type": "integer", "required": true, "format": "int32", "location": "path"}}, "response": {"$ref": "Template"}, "scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"]}, "insert": {"id": "fusiontables.template.insert", "path": "tables/{tableId}/templates", "httpMethod": "POST", "parameters": {"tableId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Template"}, "response": {"$ref": "Template"}, "scopes": ["https://www.googleapis.com/auth/fusiontables"]}, "list": {"id": "fusiontables.template.list", "path": "tables/{tableId}/templates", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "tableId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "TemplateList"}, "scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"]}, "patch": {"id": "fusiontables.template.patch", "path": "tables/{tableId}/templates/{templateId}", "httpMethod": "PATCH", "parameters": {"tableId": {"type": "string", "required": true, "location": "path"}, "templateId": {"type": "integer", "required": true, "format": "int32", "location": "path"}}, "request": {"$ref": "Template"}, "response": {"$ref": "Template"}, "scopes": ["https://www.googleapis.com/auth/fusiontables"]}, "update": {"id": "fusiontables.template.update", "path": "tables/{tableId}/templates/{templateId}", "httpMethod": "PUT", "parameters": {"tableId": {"type": "string", "required": true, "location": "path"}, "templateId": {"type": "integer", "required": true, "format": "int32", "location": "path"}}, "request": {"$ref": "Template"}, "response": {"$ref": "Template"}, "scopes": ["https://www.googleapis.com/auth/fusiontables"]}}}', true)); + + } +} + + + /** + * The "column" collection of methods. + * Typical usage is: + *
+ * $fusiontablesService = new Google_FusiontablesService(...);
+ * $column = $fusiontablesService->column;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_Column($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_Column($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves a list of columns. (column.list)
+ *
+ * @param string $tableId Table whose columns are being listed.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of columns to return. Optional. Default is 5.
+ * @opt_param string pageToken Continuation token specifying which result page to return. Optional.
+ * @return Google_Service_Fusiontables_ColumnList
+ */
+ public function listColumn($tableId, $optParams = array()) {
+ $params = array('tableId' => $tableId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_ColumnList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_Column($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_Column($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "query" collection of methods.
+ * Typical usage is:
+ *
+ * $fusiontablesService = new Google_FusiontablesService(...);
+ * $query = $fusiontablesService->query;
+ *
+ */
+ 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 hdrs Should column names be included (in the first row)?. Default is true.
+ * @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.
+ * @return Google_Service_Fusiontables_Sqlresponse
+ */
+ public function sql($sql, $optParams = array()) {
+ $params = array('sql' => $sql);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('sql', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_Sqlresponse($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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 hdrs Should column names be included (in the first row)?. Default is true.
+ * @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.
+ * @return Google_Service_Fusiontables_Sqlresponse
+ */
+ public function sqlGet($sql, $optParams = array()) {
+ $params = array('sql' => $sql);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('sqlGet', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_Sqlresponse($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "style" collection of methods.
+ * Typical usage is:
+ *
+ * $fusiontablesService = new Google_FusiontablesService(...);
+ * $style = $fusiontablesService->style;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_StyleSetting($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_StyleSetting($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves a list of styles. (style.list)
+ *
+ * @param string $tableId Table whose styles are being listed
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of styles to return. Optional. Default is 5.
+ * @opt_param string pageToken Continuation token specifying which result page to return. Optional.
+ * @return Google_Service_Fusiontables_StyleSettingList
+ */
+ public function listStyle($tableId, $optParams = array()) {
+ $params = array('tableId' => $tableId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_StyleSettingList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_StyleSetting($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_StyleSetting($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "table" collection of methods.
+ * Typical usage is:
+ *
+ * $fusiontablesService = new Google_FusiontablesService(...);
+ * $table = $fusiontablesService->table;
+ *
+ */
+ 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);
+ $data = $this->__call('copy', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_Table($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_Table($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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 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.
+ * @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.
+ * @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 int startLine The index of the first line from which to start importing, inclusive. Default is 0.
+ * @return Google_Service_Fusiontables_Import
+ */
+ public function importRows($tableId, $optParams = array()) {
+ $params = array('tableId' => $tableId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('importRows', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_Import($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('importTable', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_Table($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_Table($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves a list of tables a user owns. (table.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of styles to return. Optional. Default is 5.
+ * @opt_param string pageToken Continuation token specifying which result page to return. Optional.
+ * @return Google_Service_Fusiontables_TableList
+ */
+ public function listTable($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_TableList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_Table($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_Table($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "template" collection of methods.
+ * Typical usage is:
+ *
+ * $fusiontablesService = new Google_FusiontablesService(...);
+ * $template = $fusiontablesService->template;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_Template($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_Template($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves a list of templates. (template.list)
+ *
+ * @param string $tableId Identifier for the table whose templates are being requested
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of templates to return. Optional. Default is 5.
+ * @opt_param string pageToken Continuation token specifying which results page to return. Optional.
+ * @return Google_Service_Fusiontables_TemplateList
+ */
+ public function listTemplate($tableId, $optParams = array()) {
+ $params = array('tableId' => $tableId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_TemplateList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_Template($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Fusiontables_Template($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+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;
+ }
+ public function getColor() {
+ return $this->color;
+ }
+ public function setIcon($icon) {
+ $this->icon = $icon;
+ }
+ public function getIcon() {
+ return $this->icon;
+ }
+ 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 setOpacity($opacity) {
+ $this->opacity = $opacity;
+ }
+ public function getOpacity() {
+ return $this->opacity;
+ }
+ public function setWeight($weight) {
+ $this->weight = $weight;
+ }
+ public function getWeight() {
+ return $this->weight;
+ }
+}
+
+class Google_Service_Fusiontables_Column
+ extends Google_Model {
+ protected $__baseColumnType = 'Google_Service_Fusiontables_ColumnBaseColumn';
+ protected $__baseColumnDataType = '';
+ public $baseColumn;
+ public $columnId;
+ public $kind;
+ public $name;
+ public $type;
+ public function setBaseColumn(Google_Service_Fusiontables_ColumnBaseColumn$baseColumn) {
+ $this->baseColumn = $baseColumn;
+ }
+ public function getBaseColumn() {
+ return $this->baseColumn;
+ }
+ public function setColumnId($columnId) {
+ $this->columnId = $columnId;
+ }
+ public function getColumnId() {
+ return $this->columnId;
+ }
+ 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_Fusiontables_ColumnBaseColumn
+ extends Google_Model {
+ public $columnId;
+ public $tableIndex;
+ public function setColumnId($columnId) {
+ $this->columnId = $columnId;
+ }
+ public function getColumnId() {
+ return $this->columnId;
+ }
+ public function setTableIndex($tableIndex) {
+ $this->tableIndex = $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 $items;
+ 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_Fusiontables_Geometry
+ extends Google_Collection {
+ public $geometries;
+ public $geometry;
+ public $type;
+ public function setGeometries($geometries) {
+ $this->geometries = $geometries;
+ }
+ public function getGeometries() {
+ return $this->geometries;
+ }
+ public function setGeometry($geometry) {
+ $this->geometry = $geometry;
+ }
+ public function getGeometry() {
+ return $this->geometry;
+ }
+ public function setType($type) {
+ $this->type = $type;
+ }
+ public function getType() {
+ return $this->type;
+ }
+}
+
+class Google_Service_Fusiontables_Import
+ extends Google_Model {
+ public $kind;
+ public $numRowsReceived;
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setNumRowsReceived($numRowsReceived) {
+ $this->numRowsReceived = $numRowsReceived;
+ }
+ public function getNumRowsReceived() {
+ return $this->numRowsReceived;
+ }
+}
+
+class Google_Service_Fusiontables_Line
+ extends Google_Collection {
+ public $coordinates;
+ public $type;
+ public function setCoordinates($coordinates) {
+ $this->coordinates = $coordinates;
+ }
+ public function getCoordinates() {
+ return $this->coordinates;
+ }
+ public function setType($type) {
+ $this->type = $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 $strokeColorStyler;
+ public $strokeOpacity;
+ public $strokeWeight;
+ protected $__strokeWeightStylerType = 'Google_Service_Fusiontables_StyleFunction';
+ protected $__strokeWeightStylerDataType = '';
+ public $strokeWeightStyler;
+ public function setStrokeColor($strokeColor) {
+ $this->strokeColor = $strokeColor;
+ }
+ public function getStrokeColor() {
+ return $this->strokeColor;
+ }
+ public function setStrokeColorStyler(Google_Service_Fusiontables_StyleFunction$strokeColorStyler) {
+ $this->strokeColorStyler = $strokeColorStyler;
+ }
+ public function getStrokeColorStyler() {
+ return $this->strokeColorStyler;
+ }
+ public function setStrokeOpacity($strokeOpacity) {
+ $this->strokeOpacity = $strokeOpacity;
+ }
+ public function getStrokeOpacity() {
+ return $this->strokeOpacity;
+ }
+ public function setStrokeWeight($strokeWeight) {
+ $this->strokeWeight = $strokeWeight;
+ }
+ public function getStrokeWeight() {
+ return $this->strokeWeight;
+ }
+ public function setStrokeWeightStyler(Google_Service_Fusiontables_StyleFunction$strokeWeightStyler) {
+ $this->strokeWeightStyler = $strokeWeightStyler;
+ }
+ public function getStrokeWeightStyler() {
+ return $this->strokeWeightStyler;
+ }
+}
+
+class Google_Service_Fusiontables_Point
+ extends Google_Collection {
+ public $coordinates;
+ public $type;
+ public function setCoordinates($coordinates) {
+ $this->coordinates = $coordinates;
+ }
+ public function getCoordinates() {
+ return $this->coordinates;
+ }
+ public function setType($type) {
+ $this->type = $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 = '';
+ public $iconStyler;
+ public function setIconName($iconName) {
+ $this->iconName = $iconName;
+ }
+ public function getIconName() {
+ return $this->iconName;
+ }
+ public function setIconStyler(Google_Service_Fusiontables_StyleFunction$iconStyler) {
+ $this->iconStyler = $iconStyler;
+ }
+ public function getIconStyler() {
+ return $this->iconStyler;
+ }
+}
+
+class Google_Service_Fusiontables_Polygon
+ extends Google_Collection {
+ public $coordinates;
+ public $type;
+ public function setCoordinates($coordinates) {
+ $this->coordinates = $coordinates;
+ }
+ public function getCoordinates() {
+ return $this->coordinates;
+ }
+ public function setType($type) {
+ $this->type = $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 $fillColorStyler;
+ public $fillOpacity;
+ public $strokeColor;
+ protected $__strokeColorStylerType = 'Google_Service_Fusiontables_StyleFunction';
+ protected $__strokeColorStylerDataType = '';
+ public $strokeColorStyler;
+ public $strokeOpacity;
+ public $strokeWeight;
+ protected $__strokeWeightStylerType = 'Google_Service_Fusiontables_StyleFunction';
+ protected $__strokeWeightStylerDataType = '';
+ public $strokeWeightStyler;
+ public function setFillColor($fillColor) {
+ $this->fillColor = $fillColor;
+ }
+ public function getFillColor() {
+ return $this->fillColor;
+ }
+ public function setFillColorStyler(Google_Service_Fusiontables_StyleFunction$fillColorStyler) {
+ $this->fillColorStyler = $fillColorStyler;
+ }
+ public function getFillColorStyler() {
+ return $this->fillColorStyler;
+ }
+ public function setFillOpacity($fillOpacity) {
+ $this->fillOpacity = $fillOpacity;
+ }
+ public function getFillOpacity() {
+ return $this->fillOpacity;
+ }
+ public function setStrokeColor($strokeColor) {
+ $this->strokeColor = $strokeColor;
+ }
+ public function getStrokeColor() {
+ return $this->strokeColor;
+ }
+ public function setStrokeColorStyler(Google_Service_Fusiontables_StyleFunction$strokeColorStyler) {
+ $this->strokeColorStyler = $strokeColorStyler;
+ }
+ public function getStrokeColorStyler() {
+ return $this->strokeColorStyler;
+ }
+ public function setStrokeOpacity($strokeOpacity) {
+ $this->strokeOpacity = $strokeOpacity;
+ }
+ public function getStrokeOpacity() {
+ return $this->strokeOpacity;
+ }
+ public function setStrokeWeight($strokeWeight) {
+ $this->strokeWeight = $strokeWeight;
+ }
+ public function getStrokeWeight() {
+ return $this->strokeWeight;
+ }
+ public function setStrokeWeightStyler(Google_Service_Fusiontables_StyleFunction$strokeWeightStyler) {
+ $this->strokeWeightStyler = $strokeWeightStyler;
+ }
+ public function getStrokeWeightStyler() {
+ return $this->strokeWeightStyler;
+ }
+}
+
+class Google_Service_Fusiontables_Sqlresponse
+ extends Google_Collection {
+ public $columns;
+ public $kind;
+ public $rows;
+ public function setColumns($columns) {
+ $this->columns = $columns;
+ }
+ public function getColumns() {
+ return $this->columns;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setRows($rows) {
+ $this->rows = $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 $buckets;
+ public $columnName;
+ protected $__gradientType = 'Google_Service_Fusiontables_StyleFunctionGradient';
+ protected $__gradientDataType = '';
+ public $gradient;
+ public $kind;
+ public function setBuckets($buckets) {
+ $this->buckets = $buckets;
+ }
+ public function getBuckets() {
+ return $this->buckets;
+ }
+ public function setColumnName($columnName) {
+ $this->columnName = $columnName;
+ }
+ public function getColumnName() {
+ return $this->columnName;
+ }
+ public function setGradient(Google_Service_Fusiontables_StyleFunctionGradient$gradient) {
+ $this->gradient = $gradient;
+ }
+ public function getGradient() {
+ return $this->gradient;
+ }
+ public function setKind($kind) {
+ $this->kind = $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 $colors;
+ public $max;
+ public $min;
+ public function setColors($colors) {
+ $this->colors = $colors;
+ }
+ public function getColors() {
+ return $this->colors;
+ }
+ 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;
+ }
+}
+
+class Google_Service_Fusiontables_StyleFunctionGradientColors
+ extends Google_Model {
+ public $color;
+ public $opacity;
+ public function setColor($color) {
+ $this->color = $color;
+ }
+ public function getColor() {
+ return $this->color;
+ }
+ public function setOpacity($opacity) {
+ $this->opacity = $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 $markerOptions;
+ public $name;
+ protected $__polygonOptionsType = 'Google_Service_Fusiontables_PolygonStyle';
+ protected $__polygonOptionsDataType = '';
+ public $polygonOptions;
+ protected $__polylineOptionsType = 'Google_Service_Fusiontables_LineStyle';
+ protected $__polylineOptionsDataType = '';
+ public $polylineOptions;
+ public $styleId;
+ public $tableId;
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setMarkerOptions(Google_Service_Fusiontables_PointStyle$markerOptions) {
+ $this->markerOptions = $markerOptions;
+ }
+ public function getMarkerOptions() {
+ return $this->markerOptions;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setPolygonOptions(Google_Service_Fusiontables_PolygonStyle$polygonOptions) {
+ $this->polygonOptions = $polygonOptions;
+ }
+ public function getPolygonOptions() {
+ return $this->polygonOptions;
+ }
+ public function setPolylineOptions(Google_Service_Fusiontables_LineStyle$polylineOptions) {
+ $this->polylineOptions = $polylineOptions;
+ }
+ public function getPolylineOptions() {
+ return $this->polylineOptions;
+ }
+ public function setStyleId($styleId) {
+ $this->styleId = $styleId;
+ }
+ public function getStyleId() {
+ return $this->styleId;
+ }
+ public function setTableId($tableId) {
+ $this->tableId = $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 $items;
+ 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_Fusiontables_Table
+ extends Google_Collection {
+ public $attribution;
+ public $attributionLink;
+ public $baseTableIds;
+ protected $__columnsType = 'Google_Service_Fusiontables_Column';
+ protected $__columnsDataType = 'array';
+ public $columns;
+ public $description;
+ public $isExportable;
+ public $kind;
+ public $name;
+ public $sql;
+ public $tableId;
+ public function setAttribution($attribution) {
+ $this->attribution = $attribution;
+ }
+ public function getAttribution() {
+ return $this->attribution;
+ }
+ public function setAttributionLink($attributionLink) {
+ $this->attributionLink = $attributionLink;
+ }
+ public function getAttributionLink() {
+ return $this->attributionLink;
+ }
+ public function setBaseTableIds($baseTableIds) {
+ $this->baseTableIds = $baseTableIds;
+ }
+ public function getBaseTableIds() {
+ return $this->baseTableIds;
+ }
+ public function setColumns($columns) {
+ $this->columns = $columns;
+ }
+ public function getColumns() {
+ return $this->columns;
+ }
+ public function setDescription($description) {
+ $this->description = $description;
+ }
+ public function getDescription() {
+ return $this->description;
+ }
+ public function setIsExportable($isExportable) {
+ $this->isExportable = $isExportable;
+ }
+ public function getIsExportable() {
+ return $this->isExportable;
+ }
+ 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 setSql($sql) {
+ $this->sql = $sql;
+ }
+ public function getSql() {
+ return $this->sql;
+ }
+ public function setTableId($tableId) {
+ $this->tableId = $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 $items;
+ 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_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 getAutomaticColumnNames() {
+ return $this->automaticColumnNames;
+ }
+ public function setBody($body) {
+ $this->body = $body;
+ }
+ public function getBody() {
+ return $this->body;
+ }
+ 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 setTableId($tableId) {
+ $this->tableId = $tableId;
+ }
+ public function getTableId() {
+ return $this->tableId;
+ }
+ public function setTemplateId($templateId) {
+ $this->templateId = $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 $items;
+ 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;
+ }
+}
diff --git a/src/Google/Service/Groupssettings.php b/src/Google/Service/Groupssettings.php
new file mode 100644
index 0000000..11cbecf
--- /dev/null
+++ b/src/Google/Service/Groupssettings.php
@@ -0,0 +1,302 @@
+
+ * Lets you manage permission levels and related settings of a group.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Groupssettings extends Google_Service { + public $groups; + /** + * Constructs the internal representation of the Groupssettings service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'groups/v1/groups/'; + $this->version = 'v1'; + $this->serviceName = 'groupssettings'; + + $client->addService($this->serviceName, $this->version); + $this->groups = new Google_Service_Groupssettings_Groups_Resource($this, $this->serviceName, 'groups', json_decode('{"methods": {"get": {"id": "groupsSettings.groups.get", "path": "{groupUniqueId}", "httpMethod": "GET", "parameters": {"groupUniqueId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Groups"}, "scopes": ["https://www.googleapis.com/auth/apps.groups.settings"]}, "patch": {"id": "groupsSettings.groups.patch", "path": "{groupUniqueId}", "httpMethod": "PATCH", "parameters": {"groupUniqueId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Groups"}, "response": {"$ref": "Groups"}, "scopes": ["https://www.googleapis.com/auth/apps.groups.settings"]}, "update": {"id": "groupsSettings.groups.update", "path": "{groupUniqueId}", "httpMethod": "PUT", "parameters": {"groupUniqueId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Groups"}, "response": {"$ref": "Groups"}, "scopes": ["https://www.googleapis.com/auth/apps.groups.settings"]}}}', true)); + + } +} + + + /** + * The "groups" collection of methods. + * Typical usage is: + *
+ * $groupssettingsService = new Google_GroupssettingsService(...);
+ * $groups = $groupssettingsService->groups;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Groupssettings_Groups($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Groupssettings_Groups($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Groupssettings_Groups($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+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 $whoCanInvite;
+ public $whoCanJoin;
+ public $whoCanPostMessage;
+ public $whoCanViewGroup;
+ public $whoCanViewMembership;
+ public function setAllowExternalMembers($allowExternalMembers) {
+ $this->allowExternalMembers = $allowExternalMembers;
+ }
+ public function getAllowExternalMembers() {
+ return $this->allowExternalMembers;
+ }
+ public function setAllowGoogleCommunication($allowGoogleCommunication) {
+ $this->allowGoogleCommunication = $allowGoogleCommunication;
+ }
+ public function getAllowGoogleCommunication() {
+ return $this->allowGoogleCommunication;
+ }
+ public function setAllowWebPosting($allowWebPosting) {
+ $this->allowWebPosting = $allowWebPosting;
+ }
+ public function getAllowWebPosting() {
+ return $this->allowWebPosting;
+ }
+ public function setArchiveOnly($archiveOnly) {
+ $this->archiveOnly = $archiveOnly;
+ }
+ public function getArchiveOnly() {
+ return $this->archiveOnly;
+ }
+ public function setCustomReplyTo($customReplyTo) {
+ $this->customReplyTo = $customReplyTo;
+ }
+ public function getCustomReplyTo() {
+ return $this->customReplyTo;
+ }
+ public function setDefaultMessageDenyNotificationText($defaultMessageDenyNotificationText) {
+ $this->defaultMessageDenyNotificationText = $defaultMessageDenyNotificationText;
+ }
+ public function getDefaultMessageDenyNotificationText() {
+ return $this->defaultMessageDenyNotificationText;
+ }
+ public function setDescription($description) {
+ $this->description = $description;
+ }
+ public function getDescription() {
+ return $this->description;
+ }
+ public function setEmail($email) {
+ $this->email = $email;
+ }
+ public function getEmail() {
+ return $this->email;
+ }
+ public function setIncludeInGlobalAddressList($includeInGlobalAddressList) {
+ $this->includeInGlobalAddressList = $includeInGlobalAddressList;
+ }
+ public function getIncludeInGlobalAddressList() {
+ return $this->includeInGlobalAddressList;
+ }
+ public function setIsArchived($isArchived) {
+ $this->isArchived = $isArchived;
+ }
+ public function getIsArchived() {
+ return $this->isArchived;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setMaxMessageBytes($maxMessageBytes) {
+ $this->maxMessageBytes = $maxMessageBytes;
+ }
+ public function getMaxMessageBytes() {
+ return $this->maxMessageBytes;
+ }
+ public function setMembersCanPostAsTheGroup($membersCanPostAsTheGroup) {
+ $this->membersCanPostAsTheGroup = $membersCanPostAsTheGroup;
+ }
+ public function getMembersCanPostAsTheGroup() {
+ return $this->membersCanPostAsTheGroup;
+ }
+ public function setMessageDisplayFont($messageDisplayFont) {
+ $this->messageDisplayFont = $messageDisplayFont;
+ }
+ public function getMessageDisplayFont() {
+ return $this->messageDisplayFont;
+ }
+ public function setMessageModerationLevel($messageModerationLevel) {
+ $this->messageModerationLevel = $messageModerationLevel;
+ }
+ public function getMessageModerationLevel() {
+ return $this->messageModerationLevel;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setPrimaryLanguage($primaryLanguage) {
+ $this->primaryLanguage = $primaryLanguage;
+ }
+ public function getPrimaryLanguage() {
+ return $this->primaryLanguage;
+ }
+ public function setReplyTo($replyTo) {
+ $this->replyTo = $replyTo;
+ }
+ public function getReplyTo() {
+ return $this->replyTo;
+ }
+ public function setSendMessageDenyNotification($sendMessageDenyNotification) {
+ $this->sendMessageDenyNotification = $sendMessageDenyNotification;
+ }
+ public function getSendMessageDenyNotification() {
+ return $this->sendMessageDenyNotification;
+ }
+ public function setShowInGroupDirectory($showInGroupDirectory) {
+ $this->showInGroupDirectory = $showInGroupDirectory;
+ }
+ public function getShowInGroupDirectory() {
+ return $this->showInGroupDirectory;
+ }
+ public function setSpamModerationLevel($spamModerationLevel) {
+ $this->spamModerationLevel = $spamModerationLevel;
+ }
+ public function getSpamModerationLevel() {
+ return $this->spamModerationLevel;
+ }
+ public function setWhoCanInvite($whoCanInvite) {
+ $this->whoCanInvite = $whoCanInvite;
+ }
+ public function getWhoCanInvite() {
+ return $this->whoCanInvite;
+ }
+ public function setWhoCanJoin($whoCanJoin) {
+ $this->whoCanJoin = $whoCanJoin;
+ }
+ public function getWhoCanJoin() {
+ return $this->whoCanJoin;
+ }
+ public function setWhoCanPostMessage($whoCanPostMessage) {
+ $this->whoCanPostMessage = $whoCanPostMessage;
+ }
+ public function getWhoCanPostMessage() {
+ return $this->whoCanPostMessage;
+ }
+ public function setWhoCanViewGroup($whoCanViewGroup) {
+ $this->whoCanViewGroup = $whoCanViewGroup;
+ }
+ public function getWhoCanViewGroup() {
+ return $this->whoCanViewGroup;
+ }
+ public function setWhoCanViewMembership($whoCanViewMembership) {
+ $this->whoCanViewMembership = $whoCanViewMembership;
+ }
+ public function getWhoCanViewMembership() {
+ return $this->whoCanViewMembership;
+ }
+}
diff --git a/src/Google/Service/Latitude.php b/src/Google/Service/Latitude.php
new file mode 100644
index 0000000..eb8a6dc
--- /dev/null
+++ b/src/Google/Service/Latitude.php
@@ -0,0 +1,287 @@
+
+ * Lets you read and update your current location and work with your location history
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Latitude extends Google_Service { + public $currentLocation; + public $location; + /** + * Constructs the internal representation of the Latitude service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'latitude/v1/'; + $this->version = 'v1'; + $this->serviceName = 'latitude'; + + $client->addService($this->serviceName, $this->version); + $this->currentLocation = new Google_Service_Latitude_CurrentLocation_Resource($this, $this->serviceName, 'currentLocation', json_decode('{"methods": {"delete": {"id": "latitude.currentLocation.delete", "path": "currentLocation", "httpMethod": "DELETE", "scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city", "https://www.googleapis.com/auth/latitude.current.best", "https://www.googleapis.com/auth/latitude.current.city"]}, "get": {"id": "latitude.currentLocation.get", "path": "currentLocation", "httpMethod": "GET", "parameters": {"granularity": {"type": "string", "default": "city", "enum": ["best", "city"], "location": "query"}}, "response": {"$ref": "LatitudeCurrentlocationResourceJson"}, "scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city", "https://www.googleapis.com/auth/latitude.current.best", "https://www.googleapis.com/auth/latitude.current.city"]}, "insert": {"id": "latitude.currentLocation.insert", "path": "currentLocation", "httpMethod": "POST", "request": {"$ref": "LatitudeCurrentlocationResourceJson"}, "response": {"$ref": "LatitudeCurrentlocationResourceJson"}, "scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city", "https://www.googleapis.com/auth/latitude.current.best", "https://www.googleapis.com/auth/latitude.current.city"]}}}', true)); + $this->location = new Google_Service_Latitude_Location_Resource($this, $this->serviceName, 'location', json_decode('{"methods": {"delete": {"id": "latitude.location.delete", "path": "location/{locationId}", "httpMethod": "DELETE", "parameters": {"locationId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city"]}, "get": {"id": "latitude.location.get", "path": "location/{locationId}", "httpMethod": "GET", "parameters": {"granularity": {"type": "string", "default": "city", "enum": ["best", "city"], "location": "query"}, "locationId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Location"}, "scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city"]}, "insert": {"id": "latitude.location.insert", "path": "location", "httpMethod": "POST", "request": {"$ref": "Location"}, "response": {"$ref": "Location"}, "scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city"]}, "list": {"id": "latitude.location.list", "path": "location", "httpMethod": "GET", "parameters": {"granularity": {"type": "string", "default": "city", "enum": ["best", "city"], "location": "query"}, "max-results": {"type": "string", "location": "query"}, "max-time": {"type": "string", "location": "query"}, "min-time": {"type": "string", "location": "query"}}, "response": {"$ref": "LocationFeed"}, "scopes": ["https://www.googleapis.com/auth/latitude.all.best", "https://www.googleapis.com/auth/latitude.all.city"]}}}', true)); + + } +} + + + /** + * The "currentLocation" collection of methods. + * Typical usage is: + *
+ * $latitudeService = new Google_LatitudeService(...);
+ * $currentLocation = $latitudeService->currentLocation;
+ *
+ */
+ class Google_Service_Latitude_CurrentLocation_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Deletes the authenticated user's current location. (currentLocation.delete)
+ *
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * Returns the authenticated user's current location. (currentLocation.get)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string granularity Granularity of the requested location.
+ * @return Google_Service_Latitude_Location
+ */
+ public function get($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Latitude_Location($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Updates or creates the user's current location. (currentLocation.insert)
+ *
+ * @param Google_Location $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Latitude_Location
+ */
+ public function insert(Google_Service_Latitude_Location $postBody, $optParams = array()) {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Latitude_Location($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "location" collection of methods.
+ * Typical usage is:
+ *
+ * $latitudeService = new Google_LatitudeService(...);
+ * $location = $latitudeService->location;
+ *
+ */
+ class Google_Service_Latitude_Location_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Deletes a location from the user's location history. (location.delete)
+ *
+ * @param string $locationId Timestamp of the location to delete (ms since epoch).
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($locationId, $optParams = array()) {
+ $params = array('locationId' => $locationId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * Reads a location from the user's location history. (location.get)
+ *
+ * @param string $locationId Timestamp of the location to read (ms since epoch).
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string granularity Granularity of the location to return.
+ * @return Google_Service_Latitude_Location
+ */
+ public function get($locationId, $optParams = array()) {
+ $params = array('locationId' => $locationId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Latitude_Location($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Inserts or updates a location in the user's location history. (location.insert)
+ *
+ * @param Google_Location $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Latitude_Location
+ */
+ public function insert(Google_Service_Latitude_Location $postBody, $optParams = array()) {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Latitude_Location($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Lists the user's location history. (location.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string granularity Granularity of the requested locations.
+ * @opt_param string max-results Maximum number of locations to return.
+ * @opt_param string max-time Maximum timestamp of locations to return (ms since epoch).
+ * @opt_param string min-time Minimum timestamp of locations to return (ms since epoch).
+ * @return Google_Service_Latitude_LocationFeed
+ */
+ public function listLocation($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Latitude_LocationFeed($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Latitude_Location
+ extends Google_Model {
+ public $accuracy;
+ public $activityId;
+ public $altitude;
+ public $altitudeAccuracy;
+ public $heading;
+ public $kind;
+ public $latitude;
+ public $longitude;
+ public $speed;
+ public $timestampMs;
+ public function setAccuracy($accuracy) {
+ $this->accuracy = $accuracy;
+ }
+ public function getAccuracy() {
+ return $this->accuracy;
+ }
+ public function setActivityId($activityId) {
+ $this->activityId = $activityId;
+ }
+ public function getActivityId() {
+ return $this->activityId;
+ }
+ public function setAltitude($altitude) {
+ $this->altitude = $altitude;
+ }
+ public function getAltitude() {
+ return $this->altitude;
+ }
+ public function setAltitudeAccuracy($altitudeAccuracy) {
+ $this->altitudeAccuracy = $altitudeAccuracy;
+ }
+ public function getAltitudeAccuracy() {
+ return $this->altitudeAccuracy;
+ }
+ public function setHeading($heading) {
+ $this->heading = $heading;
+ }
+ public function getHeading() {
+ return $this->heading;
+ }
+ 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 setLongitude($longitude) {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude() {
+ return $this->longitude;
+ }
+ public function setSpeed($speed) {
+ $this->speed = $speed;
+ }
+ public function getSpeed() {
+ return $this->speed;
+ }
+ public function setTimestampMs($timestampMs) {
+ $this->timestampMs = $timestampMs;
+ }
+ public function getTimestampMs() {
+ return $this->timestampMs;
+ }
+}
+
+class Google_Service_Latitude_LocationFeed
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Latitude_Location';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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;
+ }
+}
diff --git a/src/Google/Service/Licensing.php b/src/Google/Service/Licensing.php
new file mode 100644
index 0000000..d1d08cb
--- /dev/null
+++ b/src/Google/Service/Licensing.php
@@ -0,0 +1,290 @@
+
+ * Licensing API to view and manage license for your domain.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Licensing extends Google_Service { + public $licenseAssignments; + /** + * Constructs the internal representation of the Licensing service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'apps/licensing/v1/product/'; + $this->version = 'v1'; + $this->serviceName = 'licensing'; + + $client->addService($this->serviceName, $this->version); + $this->licenseAssignments = new Google_Service_Licensing_LicenseAssignments_Resource($this, $this->serviceName, 'licenseAssignments', json_decode('{"methods": {"delete": {"id": "licensing.licenseAssignments.delete", "path": "{productId}/sku/{skuId}/user/{userId}", "httpMethod": "DELETE", "parameters": {"productId": {"type": "string", "required": true, "location": "path"}, "skuId": {"type": "string", "required": true, "location": "path"}, "userId": {"type": "string", "required": true, "location": "path"}}}, "get": {"id": "licensing.licenseAssignments.get", "path": "{productId}/sku/{skuId}/user/{userId}", "httpMethod": "GET", "parameters": {"productId": {"type": "string", "required": true, "location": "path"}, "skuId": {"type": "string", "required": true, "location": "path"}, "userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "LicenseAssignment"}}, "insert": {"id": "licensing.licenseAssignments.insert", "path": "{productId}/sku/{skuId}/user", "httpMethod": "POST", "parameters": {"productId": {"type": "string", "required": true, "location": "path"}, "skuId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "LicenseAssignmentInsert"}, "response": {"$ref": "LicenseAssignment"}}, "listForProduct": {"id": "licensing.licenseAssignments.listForProduct", "path": "{productId}/users", "httpMethod": "GET", "parameters": {"customerId": {"type": "string", "required": true, "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "1", "maximum": "1000", "location": "query"}, "pageToken": {"type": "string", "default": "", "location": "query"}, "productId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "LicenseAssignmentList"}}, "listForProductAndSku": {"id": "licensing.licenseAssignments.listForProductAndSku", "path": "{productId}/sku/{skuId}/users", "httpMethod": "GET", "parameters": {"customerId": {"type": "string", "required": true, "location": "query"}, "maxResults": {"type": "integer", "default": "100", "format": "uint32", "minimum": "1", "maximum": "1000", "location": "query"}, "pageToken": {"type": "string", "default": "", "location": "query"}, "productId": {"type": "string", "required": true, "location": "path"}, "skuId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "LicenseAssignmentList"}}, "patch": {"id": "licensing.licenseAssignments.patch", "path": "{productId}/sku/{skuId}/user/{userId}", "httpMethod": "PATCH", "parameters": {"productId": {"type": "string", "required": true, "location": "path"}, "skuId": {"type": "string", "required": true, "location": "path"}, "userId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "LicenseAssignment"}, "response": {"$ref": "LicenseAssignment"}}, "update": {"id": "licensing.licenseAssignments.update", "path": "{productId}/sku/{skuId}/user/{userId}", "httpMethod": "PUT", "parameters": {"productId": {"type": "string", "required": true, "location": "path"}, "skuId": {"type": "string", "required": true, "location": "path"}, "userId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "LicenseAssignment"}, "response": {"$ref": "LicenseAssignment"}}}}', true)); + + } +} + + + /** + * The "licenseAssignments" collection of methods. + * Typical usage is: + *
+ * $licensingService = new Google_LicensingService(...);
+ * $licenseAssignments = $licensingService->licenseAssignments;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * Get license assignment of a particular product and sku for a user (licenseAssignments.get)
+ *
+ * @param string $productId Name for product
+ * @param string $skuId Name for sku
+ * @param string $userId email id or unique Id of the user
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Licensing_LicenseAssignment
+ */
+ public function get($productId, $skuId, $userId, $optParams = array()) {
+ $params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Licensing_LicenseAssignment($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Assign License. (licenseAssignments.insert)
+ *
+ * @param string $productId Name for product
+ * @param string $skuId Name for sku
+ * @param Google_LicenseAssignmentInsert $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Licensing_LicenseAssignment($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List license assignments for given product of the customer. (licenseAssignments.listForProduct)
+ *
+ * @param string $productId Name for product
+ * @param string $customerId CustomerId represents the customer for whom licenseassignments are queried
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is 100.
+ * @opt_param string pageToken Token to fetch the next page.Optional. By default server will return first page
+ * @return Google_Service_Licensing_LicenseAssignmentList
+ */
+ public function listForProduct($productId, $customerId, $optParams = array()) {
+ $params = array('productId' => $productId, 'customerId' => $customerId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('listForProduct', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Licensing_LicenseAssignmentList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List license assignments for given product and sku of the customer.
+ * (licenseAssignments.listForProductAndSku)
+ *
+ * @param string $productId Name for product
+ * @param string $skuId Name for sku
+ * @param string $customerId CustomerId represents the customer for whom licenseassignments are queried
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is 100.
+ * @opt_param string pageToken Token to fetch the next page.Optional. By default server will return first page
+ * @return Google_Service_Licensing_LicenseAssignmentList
+ */
+ public function listForProductAndSku($productId, $skuId, $customerId, $optParams = array()) {
+ $params = array('productId' => $productId, 'skuId' => $skuId, 'customerId' => $customerId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('listForProductAndSku', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Licensing_LicenseAssignmentList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Licensing_LicenseAssignment($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Licensing_LicenseAssignment($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+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;
+ }
+ public function getEtags() {
+ return $this->etags;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setProductId($productId) {
+ $this->productId = $productId;
+ }
+ public function getProductId() {
+ return $this->productId;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+ public function setSkuId($skuId) {
+ $this->skuId = $skuId;
+ }
+ public function getSkuId() {
+ return $this->skuId;
+ }
+ public function setUserId($userId) {
+ $this->userId = $userId;
+ }
+ public function getUserId() {
+ return $this->userId;
+ }
+}
+
+class Google_Service_Licensing_LicenseAssignmentInsert
+ extends Google_Model {
+ public $userId;
+ public function setUserId($userId) {
+ $this->userId = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
diff --git a/src/Google/Service/Mirror.php b/src/Google/Service/Mirror.php
new file mode 100644
index 0000000..e61bcb9
--- /dev/null
+++ b/src/Google/Service/Mirror.php
@@ -0,0 +1,1164 @@
+
+ * API for interacting with Glass users via the timeline.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Mirror extends Google_Service { + public $contacts; + public $locations; + 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) { + $this->servicePath = 'mirror/v1/'; + $this->version = 'v1'; + $this->serviceName = 'mirror'; + + $client->addService($this->serviceName, $this->version); + $this->contacts = new Google_Service_Mirror_Contacts_Resource($this, $this->serviceName, 'contacts', json_decode('{"methods": {"delete": {"id": "mirror.contacts.delete", "path": "contacts/{id}", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}}, "get": {"id": "mirror.contacts.get", "path": "contacts/{id}", "httpMethod": "GET", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Contact"}}, "insert": {"id": "mirror.contacts.insert", "path": "contacts", "httpMethod": "POST", "request": {"$ref": "Contact"}, "response": {"$ref": "Contact"}}, "list": {"id": "mirror.contacts.list", "path": "contacts", "httpMethod": "GET", "response": {"$ref": "ContactsListResponse"}}, "patch": {"id": "mirror.contacts.patch", "path": "contacts/{id}", "httpMethod": "PATCH", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Contact"}, "response": {"$ref": "Contact"}}, "update": {"id": "mirror.contacts.update", "path": "contacts/{id}", "httpMethod": "PUT", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Contact"}, "response": {"$ref": "Contact"}}}}', true)); + $this->locations = new Google_Service_Mirror_Locations_Resource($this, $this->serviceName, 'locations', json_decode('{"methods": {"get": {"id": "mirror.locations.get", "path": "locations/{id}", "httpMethod": "GET", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Location"}}, "list": {"id": "mirror.locations.list", "path": "locations", "httpMethod": "GET", "response": {"$ref": "LocationsListResponse"}}}}', true)); + $this->subscriptions = new Google_Service_Mirror_Subscriptions_Resource($this, $this->serviceName, 'subscriptions', json_decode('{"methods": {"delete": {"id": "mirror.subscriptions.delete", "path": "subscriptions/{id}", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}}, "insert": {"id": "mirror.subscriptions.insert", "path": "subscriptions", "httpMethod": "POST", "request": {"$ref": "Subscription"}, "response": {"$ref": "Subscription"}}, "list": {"id": "mirror.subscriptions.list", "path": "subscriptions", "httpMethod": "GET", "response": {"$ref": "SubscriptionsListResponse"}}, "update": {"id": "mirror.subscriptions.update", "path": "subscriptions/{id}", "httpMethod": "PUT", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Subscription"}, "response": {"$ref": "Subscription"}}}}', true)); + $this->timeline = new Google_Service_Mirror_Timeline_Resource($this, $this->serviceName, 'timeline', json_decode('{"methods": {"delete": {"id": "mirror.timeline.delete", "path": "timeline/{id}", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}}, "get": {"id": "mirror.timeline.get", "path": "timeline/{id}", "httpMethod": "GET", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "TimelineItem"}}, "insert": {"id": "mirror.timeline.insert", "path": "timeline", "httpMethod": "POST", "request": {"$ref": "TimelineItem"}, "response": {"$ref": "TimelineItem"}, "supportsMediaUpload": true, "mediaUpload": {"accept": ["audio/*", "image/*", "video/*"], "maxSize": "10MB", "protocols": {"simple": {"multipart": true, "path": "/upload/mirror/v1/timeline"}, "resumable": {"multipart": true, "path": "/resumable/upload/mirror/v1/timeline"}}}}, "list": {"id": "mirror.timeline.list", "path": "timeline", "httpMethod": "GET", "parameters": {"bundleId": {"type": "string", "location": "query"}, "includeDeleted": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "orderBy": {"type": "string", "enum": ["displayTime", "writeTime"], "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "pinnedOnly": {"type": "boolean", "location": "query"}, "sourceItemId": {"type": "string", "location": "query"}}, "response": {"$ref": "TimelineListResponse"}}, "patch": {"id": "mirror.timeline.patch", "path": "timeline/{id}", "httpMethod": "PATCH", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "TimelineItem"}, "response": {"$ref": "TimelineItem"}}, "update": {"id": "mirror.timeline.update", "path": "timeline/{id}", "httpMethod": "PUT", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "TimelineItem"}, "response": {"$ref": "TimelineItem"}, "supportsMediaUpload": true, "mediaUpload": {"accept": ["audio/*", "image/*", "video/*"], "maxSize": "10MB", "protocols": {"simple": {"multipart": true, "path": "/upload/mirror/v1/timeline/{id}"}, "resumable": {"multipart": true, "path": "/resumable/upload/mirror/v1/timeline/{id}"}}}}}}', true)); + $this->timeline_attachments = new Google_Service_Mirror_TimelineAttachments_Resource($this, $this->serviceName, 'attachments', json_decode('{"methods": {"delete": {"id": "mirror.timeline.attachments.delete", "path": "timeline/{itemId}/attachments/{attachmentId}", "httpMethod": "DELETE", "parameters": {"attachmentId": {"type": "string", "required": true, "location": "path"}, "itemId": {"type": "string", "required": true, "location": "path"}}}, "get": {"id": "mirror.timeline.attachments.get", "path": "timeline/{itemId}/attachments/{attachmentId}", "httpMethod": "GET", "parameters": {"attachmentId": {"type": "string", "required": true, "location": "path"}, "itemId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Attachment"}, "supportsMediaDownload": true}, "insert": {"id": "mirror.timeline.attachments.insert", "path": "timeline/{itemId}/attachments", "httpMethod": "POST", "parameters": {"itemId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Attachment"}, "supportsMediaUpload": true, "mediaUpload": {"accept": ["audio/*", "image/*", "video/*"], "maxSize": "10MB", "protocols": {"simple": {"multipart": true, "path": "/upload/mirror/v1/timeline/{itemId}/attachments"}, "resumable": {"multipart": true, "path": "/resumable/upload/mirror/v1/timeline/{itemId}/attachments"}}}}, "list": {"id": "mirror.timeline.attachments.list", "path": "timeline/{itemId}/attachments", "httpMethod": "GET", "parameters": {"itemId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "AttachmentsListResponse"}}}}', true)); + + } +} + + + /** + * The "contacts" collection of methods. + * Typical usage is: + *
+ * $mirrorService = new Google_MirrorService(...);
+ * $contacts = $mirrorService->contacts;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_Contact($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_Contact($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves a list of contacts for the authenticated user. (contacts.list)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_ContactsListResponse
+ */
+ public function listContacts($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_ContactsListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_Contact($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_Contact($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "locations" collection of methods.
+ * Typical usage is:
+ *
+ * $mirrorService = new Google_MirrorService(...);
+ * $locations = $mirrorService->locations;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_Location($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves a list of locations for the user. (locations.list)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_LocationsListResponse
+ */
+ public function listLocations($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_LocationsListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "subscriptions" collection of methods.
+ * Typical usage is:
+ *
+ * $mirrorService = new Google_MirrorService(...);
+ * $subscriptions = $mirrorService->subscriptions;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_Subscription($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves a list of subscriptions for the authenticated user and service. (subscriptions.list)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Mirror_SubscriptionsListResponse
+ */
+ public function listSubscriptions($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_SubscriptionsListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_Subscription($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "timeline" collection of methods.
+ * Typical usage is:
+ *
+ * $mirrorService = new Google_MirrorService(...);
+ * $timeline = $mirrorService->timeline;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_TimelineItem($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_TimelineItem($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves a list of timeline items for the authenticated user. (timeline.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string bundleId If provided, only items with the given bundleId will be 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 orderBy Controls the order in which timeline items are returned.
+ * @opt_param string pageToken Token for the page of results to return.
+ * @opt_param bool pinnedOnly If true, only pinned items will be returned.
+ * @opt_param string sourceItemId If provided, only items with the given sourceItemId will be returned.
+ * @return Google_Service_Mirror_TimelineListResponse
+ */
+ public function listTimeline($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_TimelineListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_TimelineItem($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_TimelineItem($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "attachments" collection of methods.
+ * Typical usage is:
+ *
+ * $mirrorService = new Google_MirrorService(...);
+ * $attachments = $mirrorService->attachments;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_Attachment($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_Attachment($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Returns a list of attachments for a timeline item. (attachments.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Mirror_AttachmentsListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+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 getContentType() {
+ return $this->contentType;
+ }
+ public function setContentUrl($contentUrl) {
+ $this->contentUrl = $contentUrl;
+ }
+ public function getContentUrl() {
+ return $this->contentUrl;
+ }
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setIsProcessingContent($isProcessingContent) {
+ $this->isProcessingContent = $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 $items;
+ 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_Mirror_Contact
+ extends Google_Collection {
+ public $acceptTypes;
+ public $displayName;
+ public $id;
+ public $imageUrls;
+ public $kind;
+ public $phoneNumber;
+ public $priority;
+ public $source;
+ public $type;
+ public function setAcceptTypes($acceptTypes) {
+ $this->acceptTypes = $acceptTypes;
+ }
+ public function getAcceptTypes() {
+ return $this->acceptTypes;
+ }
+ 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 setImageUrls($imageUrls) {
+ $this->imageUrls = $imageUrls;
+ }
+ public function getImageUrls() {
+ return $this->imageUrls;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setPhoneNumber($phoneNumber) {
+ $this->phoneNumber = $phoneNumber;
+ }
+ public function getPhoneNumber() {
+ return $this->phoneNumber;
+ }
+ public function setPriority($priority) {
+ $this->priority = $priority;
+ }
+ public function getPriority() {
+ return $this->priority;
+ }
+ 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_Mirror_ContactsListResponse
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Mirror_Contact';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_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 getAccuracy() {
+ return $this->accuracy;
+ }
+ public function setAddress($address) {
+ $this->address = $address;
+ }
+ public function getAddress() {
+ return $this->address;
+ }
+ 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 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 setLongitude($longitude) {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude() {
+ return $this->longitude;
+ }
+ public function setTimestamp($timestamp) {
+ $this->timestamp = $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 $items;
+ 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_Mirror_MenuItem
+ extends Google_Collection {
+ public $action;
+ public $id;
+ public $removeWhenSelected;
+ protected $__valuesType = 'Google_Service_Mirror_MenuValue';
+ protected $__valuesDataType = 'array';
+ public $values;
+ public function setAction($action) {
+ $this->action = $action;
+ }
+ public function getAction() {
+ return $this->action;
+ }
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setRemoveWhenSelected($removeWhenSelected) {
+ $this->removeWhenSelected = $removeWhenSelected;
+ }
+ public function getRemoveWhenSelected() {
+ return $this->removeWhenSelected;
+ }
+ public function setValues($values) {
+ $this->values = $values;
+ }
+ public function getValues() {
+ return $this->values;
+ }
+}
+
+class Google_Service_Mirror_MenuValue
+ extends Google_Model {
+ public $displayName;
+ public $iconUrl;
+ public $state;
+ public function setDisplayName($displayName) {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName() {
+ return $this->displayName;
+ }
+ public function setIconUrl($iconUrl) {
+ $this->iconUrl = $iconUrl;
+ }
+ public function getIconUrl() {
+ return $this->iconUrl;
+ }
+ public function setState($state) {
+ $this->state = $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 $userActions;
+ public $userToken;
+ public $verifyToken;
+ public function setCollection($collection) {
+ $this->collection = $collection;
+ }
+ public function getCollection() {
+ return $this->collection;
+ }
+ public function setItemId($itemId) {
+ $this->itemId = $itemId;
+ }
+ public function getItemId() {
+ return $this->itemId;
+ }
+ public function setOperation($operation) {
+ $this->operation = $operation;
+ }
+ public function getOperation() {
+ return $this->operation;
+ }
+ public function setUserActions($userActions) {
+ $this->userActions = $userActions;
+ }
+ public function getUserActions() {
+ return $this->userActions;
+ }
+ public function setUserToken($userToken) {
+ $this->userToken = $userToken;
+ }
+ public function getUserToken() {
+ return $this->userToken;
+ }
+ public function setVerifyToken($verifyToken) {
+ $this->verifyToken = $verifyToken;
+ }
+ public function getVerifyToken() {
+ return $this->verifyToken;
+ }
+}
+
+class Google_Service_Mirror_NotificationConfig
+ extends Google_Model {
+ public $deliveryTime;
+ public $level;
+ public function setDeliveryTime($deliveryTime) {
+ $this->deliveryTime = $deliveryTime;
+ }
+ public function getDeliveryTime() {
+ return $this->deliveryTime;
+ }
+ public function setLevel($level) {
+ $this->level = $level;
+ }
+ public function getLevel() {
+ return $this->level;
+ }
+}
+
+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 $notification;
+ public $operation;
+ public $updated;
+ public $userToken;
+ public $verifyToken;
+ public function setCallbackUrl($callbackUrl) {
+ $this->callbackUrl = $callbackUrl;
+ }
+ public function getCallbackUrl() {
+ return $this->callbackUrl;
+ }
+ public function setCollection($collection) {
+ $this->collection = $collection;
+ }
+ public function getCollection() {
+ return $this->collection;
+ }
+ 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 setNotification(Google_Service_Mirror_Notification$notification) {
+ $this->notification = $notification;
+ }
+ public function getNotification() {
+ return $this->notification;
+ }
+ public function setOperation($operation) {
+ $this->operation = $operation;
+ }
+ public function getOperation() {
+ return $this->operation;
+ }
+ public function setUpdated($updated) {
+ $this->updated = $updated;
+ }
+ public function getUpdated() {
+ return $this->updated;
+ }
+ public function setUserToken($userToken) {
+ $this->userToken = $userToken;
+ }
+ public function getUserToken() {
+ return $this->userToken;
+ }
+ public function setVerifyToken($verifyToken) {
+ $this->verifyToken = $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 $items;
+ 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_Mirror_TimelineItem
+ extends Google_Collection {
+ protected $__attachmentsType = 'Google_Service_Mirror_Attachment';
+ protected $__attachmentsDataType = 'array';
+ public $attachments;
+ public $bundleId;
+ public $canonicalUrl;
+ public $created;
+ protected $__creatorType = 'Google_Service_Mirror_Contact';
+ protected $__creatorDataType = '';
+ public $creator;
+ public $displayTime;
+ public $etag;
+ public $html;
+ public $htmlPages;
+ public $id;
+ public $inReplyTo;
+ public $isBundleCover;
+ public $isDeleted;
+ public $isPinned;
+ public $kind;
+ protected $__locationType = 'Google_Service_Mirror_Location';
+ protected $__locationDataType = '';
+ public $location;
+ protected $__menuItemsType = 'Google_Service_Mirror_MenuItem';
+ protected $__menuItemsDataType = 'array';
+ public $menuItems;
+ protected $__notificationType = 'Google_Service_Mirror_NotificationConfig';
+ protected $__notificationDataType = '';
+ public $notification;
+ public $pinScore;
+ protected $__recipientsType = 'Google_Service_Mirror_Contact';
+ protected $__recipientsDataType = 'array';
+ public $recipients;
+ public $selfLink;
+ public $sourceItemId;
+ public $speakableText;
+ public $text;
+ public $title;
+ public $updated;
+ public function setAttachments($attachments) {
+ $this->attachments = $attachments;
+ }
+ public function getAttachments() {
+ return $this->attachments;
+ }
+ public function setBundleId($bundleId) {
+ $this->bundleId = $bundleId;
+ }
+ public function getBundleId() {
+ return $this->bundleId;
+ }
+ public function setCanonicalUrl($canonicalUrl) {
+ $this->canonicalUrl = $canonicalUrl;
+ }
+ public function getCanonicalUrl() {
+ return $this->canonicalUrl;
+ }
+ public function setCreated($created) {
+ $this->created = $created;
+ }
+ public function getCreated() {
+ return $this->created;
+ }
+ public function setCreator(Google_Service_Mirror_Contact$creator) {
+ $this->creator = $creator;
+ }
+ public function getCreator() {
+ return $this->creator;
+ }
+ public function setDisplayTime($displayTime) {
+ $this->displayTime = $displayTime;
+ }
+ public function getDisplayTime() {
+ return $this->displayTime;
+ }
+ public function setEtag($etag) {
+ $this->etag = $etag;
+ }
+ public function getEtag() {
+ return $this->etag;
+ }
+ public function setHtml($html) {
+ $this->html = $html;
+ }
+ public function getHtml() {
+ return $this->html;
+ }
+ public function setHtmlPages($htmlPages) {
+ $this->htmlPages = $htmlPages;
+ }
+ public function getHtmlPages() {
+ return $this->htmlPages;
+ }
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setInReplyTo($inReplyTo) {
+ $this->inReplyTo = $inReplyTo;
+ }
+ public function getInReplyTo() {
+ return $this->inReplyTo;
+ }
+ public function setIsBundleCover($isBundleCover) {
+ $this->isBundleCover = $isBundleCover;
+ }
+ public function getIsBundleCover() {
+ return $this->isBundleCover;
+ }
+ public function setIsDeleted($isDeleted) {
+ $this->isDeleted = $isDeleted;
+ }
+ public function getIsDeleted() {
+ return $this->isDeleted;
+ }
+ public function setIsPinned($isPinned) {
+ $this->isPinned = $isPinned;
+ }
+ public function getIsPinned() {
+ return $this->isPinned;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setLocation(Google_Service_Mirror_Location$location) {
+ $this->location = $location;
+ }
+ public function getLocation() {
+ return $this->location;
+ }
+ public function setMenuItems($menuItems) {
+ $this->menuItems = $menuItems;
+ }
+ public function getMenuItems() {
+ return $this->menuItems;
+ }
+ public function setNotification(Google_Service_Mirror_NotificationConfig$notification) {
+ $this->notification = $notification;
+ }
+ public function getNotification() {
+ return $this->notification;
+ }
+ public function setPinScore($pinScore) {
+ $this->pinScore = $pinScore;
+ }
+ public function getPinScore() {
+ return $this->pinScore;
+ }
+ public function setRecipients($recipients) {
+ $this->recipients = $recipients;
+ }
+ public function getRecipients() {
+ return $this->recipients;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+ public function setSourceItemId($sourceItemId) {
+ $this->sourceItemId = $sourceItemId;
+ }
+ public function getSourceItemId() {
+ return $this->sourceItemId;
+ }
+ public function setSpeakableText($speakableText) {
+ $this->speakableText = $speakableText;
+ }
+ public function getSpeakableText() {
+ return $this->speakableText;
+ }
+ public function setText($text) {
+ $this->text = $text;
+ }
+ public function getText() {
+ return $this->text;
+ }
+ 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;
+ }
+}
+
+class Google_Service_Mirror_TimelineListResponse
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Mirror_TimelineItem';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_Mirror_UserAction
+ extends Google_Model {
+ public $payload;
+ public $type;
+ public function setPayload($payload) {
+ $this->payload = $payload;
+ }
+ public function getPayload() {
+ return $this->payload;
+ }
+ public function setType($type) {
+ $this->type = $type;
+ }
+ public function getType() {
+ return $this->type;
+ }
+}
diff --git a/src/Google/Service/Orkut.php b/src/Google/Service/Orkut.php
new file mode 100644
index 0000000..7004aa7
--- /dev/null
+++ b/src/Google/Service/Orkut.php
@@ -0,0 +1,2568 @@
+
+ * Lets you manage activities, comments and badges in Orkut. More stuff coming in time.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Orkut extends Google_Service { + 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) { + $this->servicePath = 'orkut/v2/'; + $this->version = 'v2'; + $this->serviceName = 'orkut'; + + $client->addService($this->serviceName, $this->version); + $this->acl = new Google_Service_Orkut_Acl_Resource($this, $this->serviceName, 'acl', json_decode('{"methods": {"delete": {"id": "orkut.acl.delete", "path": "activities/{activityId}/acl/{userId}", "httpMethod": "DELETE", "parameters": {"activityId": {"type": "string", "required": true, "location": "path"}, "userId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/orkut"]}}}', true)); + $this->activities = new Google_Service_Orkut_Activities_Resource($this, $this->serviceName, 'activities', json_decode('{"methods": {"delete": {"id": "orkut.activities.delete", "path": "activities/{activityId}", "httpMethod": "DELETE", "parameters": {"activityId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/orkut"]}, "list": {"id": "orkut.activities.list", "path": "people/{userId}/activities/{collection}", "httpMethod": "GET", "parameters": {"collection": {"type": "string", "required": true, "enum": ["all", "scraps", "stream"], "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "1", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ActivityList"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}}}', true)); + $this->activityVisibility = new Google_Service_Orkut_ActivityVisibility_Resource($this, $this->serviceName, 'activityVisibility', json_decode('{"methods": {"get": {"id": "orkut.activityVisibility.get", "path": "activities/{activityId}/visibility", "httpMethod": "GET", "parameters": {"activityId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Visibility"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}, "patch": {"id": "orkut.activityVisibility.patch", "path": "activities/{activityId}/visibility", "httpMethod": "PATCH", "parameters": {"activityId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Visibility"}, "response": {"$ref": "Visibility"}, "scopes": ["https://www.googleapis.com/auth/orkut"]}, "update": {"id": "orkut.activityVisibility.update", "path": "activities/{activityId}/visibility", "httpMethod": "PUT", "parameters": {"activityId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Visibility"}, "response": {"$ref": "Visibility"}, "scopes": ["https://www.googleapis.com/auth/orkut"]}}}', true)); + $this->badges = new Google_Service_Orkut_Badges_Resource($this, $this->serviceName, 'badges', json_decode('{"methods": {"get": {"id": "orkut.badges.get", "path": "people/{userId}/badges/{badgeId}", "httpMethod": "GET", "parameters": {"badgeId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Badge"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}, "list": {"id": "orkut.badges.list", "path": "people/{userId}/badges", "httpMethod": "GET", "parameters": {"userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "BadgeList"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}}}', true)); + $this->comments = new Google_Service_Orkut_Comments_Resource($this, $this->serviceName, 'comments', json_decode('{"methods": {"delete": {"id": "orkut.comments.delete", "path": "comments/{commentId}", "httpMethod": "DELETE", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/orkut"]}, "get": {"id": "orkut.comments.get", "path": "comments/{commentId}", "httpMethod": "GET", "parameters": {"commentId": {"type": "string", "required": true, "location": "path"}, "hl": {"type": "string", "location": "query"}}, "response": {"$ref": "Comment"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}, "insert": {"id": "orkut.comments.insert", "path": "activities/{activityId}/comments", "httpMethod": "POST", "parameters": {"activityId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Comment"}, "response": {"$ref": "Comment"}, "scopes": ["https://www.googleapis.com/auth/orkut"]}, "list": {"id": "orkut.comments.list", "path": "activities/{activityId}/comments", "httpMethod": "GET", "parameters": {"activityId": {"type": "string", "required": true, "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "1", "location": "query"}, "orderBy": {"type": "string", "default": "DESCENDING_SORT", "enum": ["ascending", "descending"], "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CommentList"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}}}', true)); + $this->communities = new Google_Service_Orkut_Communities_Resource($this, $this->serviceName, 'communities', json_decode('{"methods": {"get": {"id": "orkut.communities.get", "path": "communities/{communityId}", "httpMethod": "GET", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "response": {"$ref": "Community"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}, "list": {"id": "orkut.communities.list", "path": "people/{userId}/communities", "httpMethod": "GET", "parameters": {"hl": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "1", "location": "query"}, "orderBy": {"type": "string", "enum": ["id", "ranked"], "location": "query"}, "userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CommunityList"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}}}', true)); + $this->communityFollow = new Google_Service_Orkut_CommunityFollow_Resource($this, $this->serviceName, 'communityFollow', json_decode('{"methods": {"delete": {"id": "orkut.communityFollow.delete", "path": "communities/{communityId}/followers/{userId}", "httpMethod": "DELETE", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "userId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/orkut"]}, "insert": {"id": "orkut.communityFollow.insert", "path": "communities/{communityId}/followers/{userId}", "httpMethod": "POST", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CommunityMembers"}, "scopes": ["https://www.googleapis.com/auth/orkut"]}}}', true)); + $this->communityMembers = new Google_Service_Orkut_CommunityMembers_Resource($this, $this->serviceName, 'communityMembers', json_decode('{"methods": {"delete": {"id": "orkut.communityMembers.delete", "path": "communities/{communityId}/members/{userId}", "httpMethod": "DELETE", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "userId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/orkut"]}, "get": {"id": "orkut.communityMembers.get", "path": "communities/{communityId}/members/{userId}", "httpMethod": "GET", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "hl": {"type": "string", "location": "query"}, "userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CommunityMembers"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}, "insert": {"id": "orkut.communityMembers.insert", "path": "communities/{communityId}/members/{userId}", "httpMethod": "POST", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CommunityMembers"}, "scopes": ["https://www.googleapis.com/auth/orkut"]}, "list": {"id": "orkut.communityMembers.list", "path": "communities/{communityId}/members", "httpMethod": "GET", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "friendsOnly": {"type": "boolean", "location": "query"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "1", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CommunityMembersList"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}}}', true)); + $this->communityMessages = new Google_Service_Orkut_CommunityMessages_Resource($this, $this->serviceName, 'communityMessages', json_decode('{"methods": {"delete": {"id": "orkut.communityMessages.delete", "path": "communities/{communityId}/topics/{topicId}/messages/{messageId}", "httpMethod": "DELETE", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "messageId": {"type": "string", "required": true, "format": "int64", "location": "path"}, "topicId": {"type": "string", "required": true, "format": "int64", "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/orkut"]}, "insert": {"id": "orkut.communityMessages.insert", "path": "communities/{communityId}/topics/{topicId}/messages", "httpMethod": "POST", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "topicId": {"type": "string", "required": true, "format": "int64", "location": "path"}}, "request": {"$ref": "CommunityMessage"}, "response": {"$ref": "CommunityMessage"}, "scopes": ["https://www.googleapis.com/auth/orkut"]}, "list": {"id": "orkut.communityMessages.list", "path": "communities/{communityId}/topics/{topicId}/messages", "httpMethod": "GET", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "1", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "topicId": {"type": "string", "required": true, "format": "int64", "location": "path"}}, "response": {"$ref": "CommunityMessageList"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}}}', true)); + $this->communityPollComments = new Google_Service_Orkut_CommunityPollComments_Resource($this, $this->serviceName, 'communityPollComments', json_decode('{"methods": {"insert": {"id": "orkut.communityPollComments.insert", "path": "communities/{communityId}/polls/{pollId}/comments", "httpMethod": "POST", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "pollId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "CommunityPollComment"}, "response": {"$ref": "CommunityPollComment"}, "scopes": ["https://www.googleapis.com/auth/orkut"]}, "list": {"id": "orkut.communityPollComments.list", "path": "communities/{communityId}/polls/{pollId}/comments", "httpMethod": "GET", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "1", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "pollId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CommunityPollCommentList"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}}}', true)); + $this->communityPollVotes = new Google_Service_Orkut_CommunityPollVotes_Resource($this, $this->serviceName, 'communityPollVotes', json_decode('{"methods": {"insert": {"id": "orkut.communityPollVotes.insert", "path": "communities/{communityId}/polls/{pollId}/votes", "httpMethod": "POST", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "pollId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "CommunityPollVote"}, "response": {"$ref": "CommunityPollVote"}, "scopes": ["https://www.googleapis.com/auth/orkut"]}}}', true)); + $this->communityPolls = new Google_Service_Orkut_CommunityPolls_Resource($this, $this->serviceName, 'communityPolls', json_decode('{"methods": {"get": {"id": "orkut.communityPolls.get", "path": "communities/{communityId}/polls/{pollId}", "httpMethod": "GET", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "hl": {"type": "string", "location": "query"}, "pollId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "CommunityPoll"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}, "list": {"id": "orkut.communityPolls.list", "path": "communities/{communityId}/polls", "httpMethod": "GET", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "1", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CommunityPollList"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}}}', true)); + $this->communityRelated = new Google_Service_Orkut_CommunityRelated_Resource($this, $this->serviceName, 'communityRelated', json_decode('{"methods": {"list": {"id": "orkut.communityRelated.list", "path": "communities/{communityId}/related", "httpMethod": "GET", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "hl": {"type": "string", "location": "query"}}, "response": {"$ref": "CommunityList"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}}}', true)); + $this->communityTopics = new Google_Service_Orkut_CommunityTopics_Resource($this, $this->serviceName, 'communityTopics', json_decode('{"methods": {"delete": {"id": "orkut.communityTopics.delete", "path": "communities/{communityId}/topics/{topicId}", "httpMethod": "DELETE", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "topicId": {"type": "string", "required": true, "format": "int64", "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/orkut"]}, "get": {"id": "orkut.communityTopics.get", "path": "communities/{communityId}/topics/{topicId}", "httpMethod": "GET", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "hl": {"type": "string", "location": "query"}, "topicId": {"type": "string", "required": true, "format": "int64", "location": "path"}}, "response": {"$ref": "CommunityTopic"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}, "insert": {"id": "orkut.communityTopics.insert", "path": "communities/{communityId}/topics", "httpMethod": "POST", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "isShout": {"type": "boolean", "location": "query"}}, "request": {"$ref": "CommunityTopic"}, "response": {"$ref": "CommunityTopic"}, "scopes": ["https://www.googleapis.com/auth/orkut"]}, "list": {"id": "orkut.communityTopics.list", "path": "communities/{communityId}/topics", "httpMethod": "GET", "parameters": {"communityId": {"type": "integer", "required": true, "format": "int32", "location": "path"}, "hl": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "1", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "CommunityTopicList"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}}}', true)); + $this->counters = new Google_Service_Orkut_Counters_Resource($this, $this->serviceName, 'counters', json_decode('{"methods": {"list": {"id": "orkut.counters.list", "path": "people/{userId}/counters", "httpMethod": "GET", "parameters": {"userId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Counters"}, "scopes": ["https://www.googleapis.com/auth/orkut", "https://www.googleapis.com/auth/orkut.readonly"]}}}', true)); + $this->scraps = new Google_Service_Orkut_Scraps_Resource($this, $this->serviceName, 'scraps', json_decode('{"methods": {"insert": {"id": "orkut.scraps.insert", "path": "activities/scraps", "httpMethod": "POST", "request": {"$ref": "Activity"}, "response": {"$ref": "Activity"}, "scopes": ["https://www.googleapis.com/auth/orkut"]}}}', true)); + + } +} + + + /** + * The "acl" collection of methods. + * Typical usage is: + *
+ * $orkutService = new Google_OrkutService(...);
+ * $acl = $orkutService->acl;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ }
+
+ /**
+ * The "activities" collection of methods.
+ * Typical usage is:
+ *
+ * $orkutService = new Google_OrkutService(...);
+ * $activities = $orkutService->activities;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * Retrieves a list of activities. (activities.list)
+ *
+ * @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 hl Specifies the interface language (host language) of your user interface.
+ * @opt_param string maxResults The maximum number of activities to include in the response.
+ * @opt_param string pageToken A continuation token that allows pagination.
+ * @return Google_Service_Orkut_ActivityList
+ */
+ public function listActivities($userId, $collection, $optParams = array()) {
+ $params = array('userId' => $userId, 'collection' => $collection);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_ActivityList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "activityVisibility" collection of methods.
+ * Typical usage is:
+ *
+ * $orkutService = new Google_OrkutService(...);
+ * $activityVisibility = $orkutService->activityVisibility;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_Visibility($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_Visibility($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_Visibility($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "badges" collection of methods.
+ * Typical usage is:
+ *
+ * $orkutService = new Google_OrkutService(...);
+ * $badges = $orkutService->badges;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_Badge($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the list of visible badges of a user. (badges.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_BadgeList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "comments" collection of methods.
+ * Typical usage is:
+ *
+ * $orkutService = new Google_OrkutService(...);
+ * $comments = $orkutService->comments;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_Comment($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_Comment($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves a list of comments, possibly filtered. (comments.list)
+ *
+ * @param string $activityId The ID of the activity containing the comments.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
+ * @opt_param string maxResults The maximum number of activities to include in the response.
+ * @opt_param string orderBy Sort search results.
+ * @opt_param string pageToken A continuation token that allows pagination.
+ * @return Google_Service_Orkut_CommentList
+ */
+ public function listComments($activityId, $optParams = array()) {
+ $params = array('activityId' => $activityId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_CommentList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "communities" collection of methods.
+ * Typical usage is:
+ *
+ * $orkutService = new Google_OrkutService(...);
+ * $communities = $orkutService->communities;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_Community($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the list of communities the current user is a member of. (communities.list)
+ *
+ * @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 hl Specifies the interface language (host language) of your user interface.
+ * @opt_param string maxResults The maximum number of communities to include in the response.
+ * @opt_param string orderBy How to order the communities by.
+ * @return Google_Service_Orkut_CommunityList
+ */
+ public function listCommunities($userId, $optParams = array()) {
+ $params = array('userId' => $userId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_CommunityList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "communityFollow" collection of methods.
+ * Typical usage is:
+ *
+ * $orkutService = new Google_OrkutService(...);
+ * $communityFollow = $orkutService->communityFollow;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_CommunityMembers($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "communityMembers" collection of methods.
+ * Typical usage is:
+ *
+ * $orkutService = new Google_OrkutService(...);
+ * $communityMembers = $orkutService->communityMembers;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_CommunityMembers($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_CommunityMembers($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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.list)
+ *
+ * @param int $communityId The ID of the community whose members will be listed.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param bool friendsOnly Whether to list only community members who are friends of the user.
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
+ * @opt_param string maxResults The maximum number of members to include in the response.
+ * @opt_param string pageToken A continuation token that allows pagination.
+ * @return Google_Service_Orkut_CommunityMembersList
+ */
+ public function listCommunityMembers($communityId, $optParams = array()) {
+ $params = array('communityId' => $communityId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_CommunityMembersList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "communityMessages" collection of methods.
+ * Typical usage is:
+ *
+ * $orkutService = new Google_OrkutService(...);
+ * $communityMessages = $orkutService->communityMessages;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_CommunityMessage($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the messages of a topic of a community. (communityMessages.list)
+ *
+ * @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 hl Specifies the interface language (host language) of your user interface.
+ * @opt_param string maxResults The maximum number of messages to include in the response.
+ * @opt_param string pageToken A continuation token that allows pagination.
+ * @return Google_Service_Orkut_CommunityMessageList
+ */
+ public function listCommunityMessages($communityId, $topicId, $optParams = array()) {
+ $params = array('communityId' => $communityId, 'topicId' => $topicId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_CommunityMessageList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "communityPollComments" collection of methods.
+ * Typical usage is:
+ *
+ * $orkutService = new Google_OrkutService(...);
+ * $communityPollComments = $orkutService->communityPollComments;
+ *
+ */
+ 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_CommunityPollComment($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the comments of a community poll. (communityPollComments.list)
+ *
+ * @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 hl Specifies the interface language (host language) of your user interface.
+ * @opt_param string maxResults The maximum number of comments to include in the response.
+ * @opt_param string pageToken A continuation token that allows pagination.
+ * @return Google_Service_Orkut_CommunityPollCommentList
+ */
+ public function listCommunityPollComments($communityId, $pollId, $optParams = array()) {
+ $params = array('communityId' => $communityId, 'pollId' => $pollId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_CommunityPollCommentList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "communityPollVotes" collection of methods.
+ * Typical usage is:
+ *
+ * $orkutService = new Google_OrkutService(...);
+ * $communityPollVotes = $orkutService->communityPollVotes;
+ *
+ */
+ 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_CommunityPollVote($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "communityPolls" collection of methods.
+ * Typical usage is:
+ *
+ * $orkutService = new Google_OrkutService(...);
+ * $communityPolls = $orkutService->communityPolls;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_CommunityPoll($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the polls of a community. (communityPolls.list)
+ *
+ * @param int $communityId The ID of the community which polls will be listed.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
+ * @opt_param string maxResults The maximum number of polls to include in the response.
+ * @opt_param string pageToken A continuation token that allows pagination.
+ * @return Google_Service_Orkut_CommunityPollList
+ */
+ public function listCommunityPolls($communityId, $optParams = array()) {
+ $params = array('communityId' => $communityId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_CommunityPollList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "communityRelated" collection of methods.
+ * Typical usage is:
+ *
+ * $orkutService = new Google_OrkutService(...);
+ * $communityRelated = $orkutService->communityRelated;
+ *
+ */
+ class Google_Service_Orkut_CommunityRelated_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Retrieves the communities related to another one. (communityRelated.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_CommunityList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "communityTopics" collection of methods.
+ * Typical usage is:
+ *
+ * $orkutService = new Google_OrkutService(...);
+ * $communityTopics = $orkutService->communityTopics;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_CommunityTopic($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_CommunityTopic($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves the topics of a community. (communityTopics.list)
+ *
+ * @param int $communityId The ID of the community which topics will be listed.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string hl Specifies the interface language (host language) of your user interface.
+ * @opt_param string maxResults The maximum number of topics to include in the response.
+ * @opt_param string pageToken A continuation token that allows pagination.
+ * @return Google_Service_Orkut_CommunityTopicList
+ */
+ public function listCommunityTopics($communityId, $optParams = array()) {
+ $params = array('communityId' => $communityId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_CommunityTopicList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "counters" collection of methods.
+ * Typical usage is:
+ *
+ * $orkutService = new Google_OrkutService(...);
+ * $counters = $orkutService->counters;
+ *
+ */
+ class Google_Service_Orkut_Counters_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Retrieves the counters of a user. (counters.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_Counters($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "scraps" collection of methods.
+ * Typical usage is:
+ *
+ * $orkutService = new Google_OrkutService(...);
+ * $scraps = $orkutService->scraps;
+ *
+ */
+ 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Orkut_Activity($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Orkut_Acl
+ extends Google_Collection {
+ public $description;
+ protected $__itemsType = 'Google_Service_Orkut_AclItems';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $totalParticipants;
+ public function setDescription($description) {
+ $this->description = $description;
+ }
+ public function getDescription() {
+ return $this->description;
+ }
+ 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 setTotalParticipants($totalParticipants) {
+ $this->totalParticipants = $totalParticipants;
+ }
+ public function getTotalParticipants() {
+ return $this->totalParticipants;
+ }
+}
+
+class Google_Service_Orkut_AclItems
+ extends Google_Model {
+ public $id;
+ public $type;
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setType($type) {
+ $this->type = $type;
+ }
+ public function getType() {
+ return $this->type;
+ }
+}
+
+class Google_Service_Orkut_Activity
+ extends Google_Collection {
+ protected $__accessType = 'Google_Service_Orkut_Acl';
+ protected $__accessDataType = '';
+ public $access;
+ protected $__actorType = 'Google_Service_Orkut_OrkutAuthorResource';
+ protected $__actorDataType = '';
+ public $actor;
+ public $id;
+ public $kind;
+ protected $__linksType = 'Google_Service_Orkut_OrkutLinkResource';
+ protected $__linksDataType = 'array';
+ public $links;
+ protected $__objectType = 'Google_Service_Orkut_ActivityObject';
+ protected $__objectDataType = '';
+ public $object;
+ public $published;
+ public $title;
+ public $updated;
+ public $verb;
+ public function setAccess(Google_Service_Orkut_Acl$access) {
+ $this->access = $access;
+ }
+ public function getAccess() {
+ return $this->access;
+ }
+ public function setActor(Google_Service_Orkut_OrkutAuthorResource$actor) {
+ $this->actor = $actor;
+ }
+ public function getActor() {
+ return $this->actor;
+ }
+ 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 setLinks($links) {
+ $this->links = $links;
+ }
+ public function getLinks() {
+ return $this->links;
+ }
+ public function setObject(Google_Service_Orkut_ActivityObject$object) {
+ $this->object = $object;
+ }
+ public function getObject() {
+ return $this->object;
+ }
+ public function setPublished($published) {
+ $this->published = $published;
+ }
+ public function getPublished() {
+ return $this->published;
+ }
+ 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 setVerb($verb) {
+ $this->verb = $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 $items;
+ 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_Orkut_ActivityObject
+ extends Google_Collection {
+ public $content;
+ protected $__itemsType = 'Google_Service_Orkut_OrkutActivityobjectsResource';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $objectType;
+ protected $__repliesType = 'Google_Service_Orkut_ActivityObjectReplies';
+ protected $__repliesDataType = '';
+ public $replies;
+ public function setContent($content) {
+ $this->content = $content;
+ }
+ public function getContent() {
+ return $this->content;
+ }
+ public function setItems($items) {
+ $this->items = $items;
+ }
+ public function getItems() {
+ return $this->items;
+ }
+ public function setObjectType($objectType) {
+ $this->objectType = $objectType;
+ }
+ public function getObjectType() {
+ return $this->objectType;
+ }
+ public function setReplies(Google_Service_Orkut_ActivityObjectReplies$replies) {
+ $this->replies = $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 $items;
+ public $totalItems;
+ public $url;
+ public function setItems($items) {
+ $this->items = $items;
+ }
+ public function getItems() {
+ return $this->items;
+ }
+ public function setTotalItems($totalItems) {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems() {
+ return $this->totalItems;
+ }
+ public function setUrl($url) {
+ $this->url = $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;
+ public function setBadgeLargeLogo($badgeLargeLogo) {
+ $this->badgeLargeLogo = $badgeLargeLogo;
+ }
+ public function getBadgeLargeLogo() {
+ return $this->badgeLargeLogo;
+ }
+ public function setBadgeSmallLogo($badgeSmallLogo) {
+ $this->badgeSmallLogo = $badgeSmallLogo;
+ }
+ public function getBadgeSmallLogo() {
+ return $this->badgeSmallLogo;
+ }
+ public function setCaption($caption) {
+ $this->caption = $caption;
+ }
+ public function getCaption() {
+ return $this->caption;
+ }
+ 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 setSponsorLogo($sponsorLogo) {
+ $this->sponsorLogo = $sponsorLogo;
+ }
+ public function getSponsorLogo() {
+ return $this->sponsorLogo;
+ }
+ public function setSponsorName($sponsorName) {
+ $this->sponsorName = $sponsorName;
+ }
+ public function getSponsorName() {
+ return $this->sponsorName;
+ }
+ public function setSponsorUrl($sponsorUrl) {
+ $this->sponsorUrl = $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 $items;
+ 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_Orkut_Comment
+ extends Google_Collection {
+ protected $__actorType = 'Google_Service_Orkut_OrkutAuthorResource';
+ protected $__actorDataType = '';
+ public $actor;
+ public $content;
+ public $id;
+ protected $__inReplyToType = 'Google_Service_Orkut_CommentInReplyTo';
+ protected $__inReplyToDataType = '';
+ public $inReplyTo;
+ public $kind;
+ protected $__linksType = 'Google_Service_Orkut_OrkutLinkResource';
+ protected $__linksDataType = 'array';
+ public $links;
+ public $published;
+ public function setActor(Google_Service_Orkut_OrkutAuthorResource$actor) {
+ $this->actor = $actor;
+ }
+ public function getActor() {
+ return $this->actor;
+ }
+ public function setContent($content) {
+ $this->content = $content;
+ }
+ public function getContent() {
+ return $this->content;
+ }
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setInReplyTo(Google_Service_Orkut_CommentInReplyTo$inReplyTo) {
+ $this->inReplyTo = $inReplyTo;
+ }
+ public function getInReplyTo() {
+ return $this->inReplyTo;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setLinks($links) {
+ $this->links = $links;
+ }
+ public function getLinks() {
+ return $this->links;
+ }
+ public function setPublished($published) {
+ $this->published = $published;
+ }
+ public function getPublished() {
+ return $this->published;
+ }
+}
+
+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 getHref() {
+ return $this->href;
+ }
+ public function setRef($ref) {
+ $this->ref = $ref;
+ }
+ public function getRef() {
+ return $this->ref;
+ }
+ public function setRel($rel) {
+ $this->rel = $rel;
+ }
+ public function getRel() {
+ return $this->rel;
+ }
+ public function setType($type) {
+ $this->type = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ public $previousPageToken;
+ 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 setPreviousPageToken($previousPageToken) {
+ $this->previousPageToken = $previousPageToken;
+ }
+ public function getPreviousPageToken() {
+ return $this->previousPageToken;
+ }
+}
+
+class Google_Service_Orkut_Community
+ extends Google_Collection {
+ public $category;
+ protected $__co_ownersType = 'Google_Service_Orkut_OrkutAuthorResource';
+ protected $__co_ownersDataType = 'array';
+ public $co_owners;
+ public $creation_date;
+ public $description;
+ public $id;
+ public $kind;
+ public $language;
+ protected $__linksType = 'Google_Service_Orkut_OrkutLinkResource';
+ protected $__linksDataType = 'array';
+ public $links;
+ public $location;
+ public $member_count;
+ protected $__moderatorsType = 'Google_Service_Orkut_OrkutAuthorResource';
+ protected $__moderatorsDataType = 'array';
+ public $moderators;
+ public $name;
+ protected $__ownerType = 'Google_Service_Orkut_OrkutAuthorResource';
+ protected $__ownerDataType = '';
+ public $owner;
+ public $photo_url;
+ public function setCategory($category) {
+ $this->category = $category;
+ }
+ public function getCategory() {
+ return $this->category;
+ }
+ public function setCo_owners($co_owners) {
+ $this->co_owners = $co_owners;
+ }
+ public function getCo_owners() {
+ return $this->co_owners;
+ }
+ public function setCreation_date($creation_date) {
+ $this->creation_date = $creation_date;
+ }
+ public function getCreation_date() {
+ return $this->creation_date;
+ }
+ 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 setLanguage($language) {
+ $this->language = $language;
+ }
+ public function getLanguage() {
+ return $this->language;
+ }
+ public function setLinks($links) {
+ $this->links = $links;
+ }
+ public function getLinks() {
+ return $this->links;
+ }
+ public function setLocation($location) {
+ $this->location = $location;
+ }
+ public function getLocation() {
+ return $this->location;
+ }
+ public function setMember_count($member_count) {
+ $this->member_count = $member_count;
+ }
+ public function getMember_count() {
+ return $this->member_count;
+ }
+ public function setModerators($moderators) {
+ $this->moderators = $moderators;
+ }
+ public function getModerators() {
+ return $this->moderators;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setOwner(Google_Service_Orkut_OrkutAuthorResource$owner) {
+ $this->owner = $owner;
+ }
+ public function getOwner() {
+ return $this->owner;
+ }
+ public function setPhoto_url(http://github.com/$photo_url) {
+ $this->photo_url = $photo_url;
+ }
+ public function getPhoto_url() {
+ return $this->photo_url;
+ }
+}
+
+class Google_Service_Orkut_CommunityList
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Orkut_Community';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_Orkut_CommunityMembers
+ extends Google_Model {
+ protected $__communityMembershipStatusType = 'Google_Service_Orkut_CommunityMembershipStatus';
+ protected $__communityMembershipStatusDataType = '';
+ public $communityMembershipStatus;
+ public $kind;
+ protected $__personType = 'Google_Service_Orkut_OrkutActivitypersonResource';
+ protected $__personDataType = '';
+ public $person;
+ public function setCommunityMembershipStatus(Google_Service_Orkut_CommunityMembershipStatus$communityMembershipStatus) {
+ $this->communityMembershipStatus = $communityMembershipStatus;
+ }
+ public function getCommunityMembershipStatus() {
+ return $this->communityMembershipStatus;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setPerson(Google_Service_Orkut_OrkutActivitypersonResource$person) {
+ $this->person = $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 $items;
+ public $kind;
+ public $lastPageToken;
+ public $nextPageToken;
+ public $prevPageToken;
+ public function setFirstPageToken($firstPageToken) {
+ $this->firstPageToken = $firstPageToken;
+ }
+ public function getFirstPageToken() {
+ return $this->firstPageToken;
+ }
+ 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 setLastPageToken($lastPageToken) {
+ $this->lastPageToken = $lastPageToken;
+ }
+ public function getLastPageToken() {
+ return $this->lastPageToken;
+ }
+ public function setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+ public function setPrevPageToken($prevPageToken) {
+ $this->prevPageToken = $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;
+ public function setCanCreatePoll($canCreatePoll) {
+ $this->canCreatePoll = $canCreatePoll;
+ }
+ public function getCanCreatePoll() {
+ return $this->canCreatePoll;
+ }
+ public function setCanCreateTopic($canCreateTopic) {
+ $this->canCreateTopic = $canCreateTopic;
+ }
+ public function getCanCreateTopic() {
+ return $this->canCreateTopic;
+ }
+ public function setCanShout($canShout) {
+ $this->canShout = $canShout;
+ }
+ public function getCanShout() {
+ return $this->canShout;
+ }
+ public function setIsCoOwner($isCoOwner) {
+ $this->isCoOwner = $isCoOwner;
+ }
+ public function getIsCoOwner() {
+ return $this->isCoOwner;
+ }
+ public function setIsFollowing($isFollowing) {
+ $this->isFollowing = $isFollowing;
+ }
+ public function getIsFollowing() {
+ return $this->isFollowing;
+ }
+ public function setIsModerator($isModerator) {
+ $this->isModerator = $isModerator;
+ }
+ public function getIsModerator() {
+ return $this->isModerator;
+ }
+ public function setIsOwner($isOwner) {
+ $this->isOwner = $isOwner;
+ }
+ public function getIsOwner() {
+ return $this->isOwner;
+ }
+ public function setIsRestoreAvailable($isRestoreAvailable) {
+ $this->isRestoreAvailable = $isRestoreAvailable;
+ }
+ public function getIsRestoreAvailable() {
+ return $this->isRestoreAvailable;
+ }
+ public function setIsTakebackAvailable($isTakebackAvailable) {
+ $this->isTakebackAvailable = $isTakebackAvailable;
+ }
+ public function getIsTakebackAvailable() {
+ return $this->isTakebackAvailable;
+ }
+ 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_Orkut_CommunityMessage
+ extends Google_Collection {
+ public $addedDate;
+ protected $__authorType = 'Google_Service_Orkut_OrkutAuthorResource';
+ protected $__authorDataType = '';
+ public $author;
+ public $body;
+ public $id;
+ public $isSpam;
+ public $kind;
+ protected $__linksType = 'Google_Service_Orkut_OrkutLinkResource';
+ protected $__linksDataType = 'array';
+ public $links;
+ public $subject;
+ public function setAddedDate($addedDate) {
+ $this->addedDate = $addedDate;
+ }
+ public function getAddedDate() {
+ return $this->addedDate;
+ }
+ public function setAuthor(Google_Service_Orkut_OrkutAuthorResource$author) {
+ $this->author = $author;
+ }
+ public function getAuthor() {
+ return $this->author;
+ }
+ public function setBody($body) {
+ $this->body = $body;
+ }
+ public function getBody() {
+ return $this->body;
+ }
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setIsSpam($isSpam) {
+ $this->isSpam = $isSpam;
+ }
+ public function getIsSpam() {
+ return $this->isSpam;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setLinks($links) {
+ $this->links = $links;
+ }
+ public function getLinks() {
+ return $this->links;
+ }
+ public function setSubject($subject) {
+ $this->subject = $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 $items;
+ public $kind;
+ public $lastPageToken;
+ public $nextPageToken;
+ public $prevPageToken;
+ public function setFirstPageToken($firstPageToken) {
+ $this->firstPageToken = $firstPageToken;
+ }
+ public function getFirstPageToken() {
+ return $this->firstPageToken;
+ }
+ 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 setLastPageToken($lastPageToken) {
+ $this->lastPageToken = $lastPageToken;
+ }
+ public function getLastPageToken() {
+ return $this->lastPageToken;
+ }
+ public function setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+ public function setPrevPageToken($prevPageToken) {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken() {
+ return $this->prevPageToken;
+ }
+}
+
+class Google_Service_Orkut_CommunityPoll
+ extends Google_Collection {
+ protected $__authorType = 'Google_Service_Orkut_OrkutAuthorResource';
+ protected $__authorDataType = '';
+ public $author;
+ public $communityId;
+ public $creationTime;
+ public $description;
+ public $endingTime;
+ public $hasVoted;
+ public $id;
+ protected $__imageType = 'Google_Service_Orkut_CommunityPollImage';
+ protected $__imageDataType = '';
+ public $image;
+ 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';
+ public $links;
+ protected $__optionsType = 'Google_Service_Orkut_OrkutCommunitypolloptionResource';
+ protected $__optionsDataType = 'array';
+ public $options;
+ public $question;
+ public $totalNumberOfVotes;
+ public $votedOptions;
+ public function setAuthor(Google_Service_Orkut_OrkutAuthorResource$author) {
+ $this->author = $author;
+ }
+ public function getAuthor() {
+ return $this->author;
+ }
+ public function setCommunityId($communityId) {
+ $this->communityId = $communityId;
+ }
+ public function getCommunityId() {
+ return $this->communityId;
+ }
+ public function setCreationTime($creationTime) {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime() {
+ return $this->creationTime;
+ }
+ public function setDescription($description) {
+ $this->description = $description;
+ }
+ public function getDescription() {
+ return $this->description;
+ }
+ public function setEndingTime($endingTime) {
+ $this->endingTime = $endingTime;
+ }
+ public function getEndingTime() {
+ return $this->endingTime;
+ }
+ public function setHasVoted($hasVoted) {
+ $this->hasVoted = $hasVoted;
+ }
+ public function getHasVoted() {
+ return $this->hasVoted;
+ }
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setImage(Google_Service_Orkut_CommunityPollImage$image) {
+ $this->image = $image;
+ }
+ public function getImage() {
+ return $this->image;
+ }
+ public function setIsClosed($isClosed) {
+ $this->isClosed = $isClosed;
+ }
+ public function getIsClosed() {
+ return $this->isClosed;
+ }
+ public function setIsMultipleAnswers($isMultipleAnswers) {
+ $this->isMultipleAnswers = $isMultipleAnswers;
+ }
+ public function getIsMultipleAnswers() {
+ return $this->isMultipleAnswers;
+ }
+ public function setIsOpenForVoting($isOpenForVoting) {
+ $this->isOpenForVoting = $isOpenForVoting;
+ }
+ public function getIsOpenForVoting() {
+ return $this->isOpenForVoting;
+ }
+ public function setIsRestricted($isRestricted) {
+ $this->isRestricted = $isRestricted;
+ }
+ public function getIsRestricted() {
+ return $this->isRestricted;
+ }
+ public function setIsSpam($isSpam) {
+ $this->isSpam = $isSpam;
+ }
+ public function getIsSpam() {
+ return $this->isSpam;
+ }
+ public function setIsUsersVotePublic($isUsersVotePublic) {
+ $this->isUsersVotePublic = $isUsersVotePublic;
+ }
+ public function getIsUsersVotePublic() {
+ return $this->isUsersVotePublic;
+ }
+ public function setIsVotingAllowedForNonMembers($isVotingAllowedForNonMembers) {
+ $this->isVotingAllowedForNonMembers = $isVotingAllowedForNonMembers;
+ }
+ public function getIsVotingAllowedForNonMembers() {
+ return $this->isVotingAllowedForNonMembers;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setLastUpdate($lastUpdate) {
+ $this->lastUpdate = $lastUpdate;
+ }
+ public function getLastUpdate() {
+ return $this->lastUpdate;
+ }
+ public function setLinks($links) {
+ $this->links = $links;
+ }
+ public function getLinks() {
+ return $this->links;
+ }
+ public function setOptions($options) {
+ $this->options = $options;
+ }
+ public function getOptions() {
+ return $this->options;
+ }
+ public function setQuestion($question) {
+ $this->question = $question;
+ }
+ public function getQuestion() {
+ return $this->question;
+ }
+ public function setTotalNumberOfVotes($totalNumberOfVotes) {
+ $this->totalNumberOfVotes = $totalNumberOfVotes;
+ }
+ public function getTotalNumberOfVotes() {
+ return $this->totalNumberOfVotes;
+ }
+ public function setVotedOptions($votedOptions) {
+ $this->votedOptions = $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 $author;
+ public $body;
+ public $id;
+ public $kind;
+ public function setAddedDate($addedDate) {
+ $this->addedDate = $addedDate;
+ }
+ public function getAddedDate() {
+ return $this->addedDate;
+ }
+ public function setAuthor(Google_Service_Orkut_OrkutAuthorResource$author) {
+ $this->author = $author;
+ }
+ public function getAuthor() {
+ return $this->author;
+ }
+ public function setBody($body) {
+ $this->body = $body;
+ }
+ public function getBody() {
+ return $this->body;
+ }
+ 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_Orkut_CommunityPollCommentList
+ extends Google_Collection {
+ public $firstPageToken;
+ protected $__itemsType = 'Google_Service_Orkut_CommunityPollComment';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $lastPageToken;
+ public $nextPageToken;
+ public $prevPageToken;
+ public function setFirstPageToken($firstPageToken) {
+ $this->firstPageToken = $firstPageToken;
+ }
+ public function getFirstPageToken() {
+ return $this->firstPageToken;
+ }
+ 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 setLastPageToken($lastPageToken) {
+ $this->lastPageToken = $lastPageToken;
+ }
+ public function getLastPageToken() {
+ return $this->lastPageToken;
+ }
+ public function setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+ public function setPrevPageToken($prevPageToken) {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken() {
+ return $this->prevPageToken;
+ }
+}
+
+class Google_Service_Orkut_CommunityPollImage
+ extends Google_Model {
+ public $url;
+ public function setUrl($url) {
+ $this->url = $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 $items;
+ public $kind;
+ public $lastPageToken;
+ public $nextPageToken;
+ public $prevPageToken;
+ public function setFirstPageToken($firstPageToken) {
+ $this->firstPageToken = $firstPageToken;
+ }
+ public function getFirstPageToken() {
+ return $this->firstPageToken;
+ }
+ 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 setLastPageToken($lastPageToken) {
+ $this->lastPageToken = $lastPageToken;
+ }
+ public function getLastPageToken() {
+ return $this->lastPageToken;
+ }
+ public function setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+ public function setPrevPageToken($prevPageToken) {
+ $this->prevPageToken = $prevPageToken;
+ }
+ public function getPrevPageToken() {
+ return $this->prevPageToken;
+ }
+}
+
+class Google_Service_Orkut_CommunityPollVote
+ extends Google_Collection {
+ public $isVotevisible;
+ public $kind;
+ public $optionIds;
+ public function setIsVotevisible($isVotevisible) {
+ $this->isVotevisible = $isVotevisible;
+ }
+ public function getIsVotevisible() {
+ return $this->isVotevisible;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setOptionIds($optionIds) {
+ $this->optionIds = $optionIds;
+ }
+ public function getOptionIds() {
+ return $this->optionIds;
+ }
+}
+
+class Google_Service_Orkut_CommunityTopic
+ extends Google_Collection {
+ protected $__authorType = 'Google_Service_Orkut_OrkutAuthorResource';
+ protected $__authorDataType = '';
+ public $author;
+ public $body;
+ public $id;
+ public $isClosed;
+ public $kind;
+ public $lastUpdate;
+ public $latestMessageSnippet;
+ protected $__linksType = 'Google_Service_Orkut_OrkutLinkResource';
+ protected $__linksDataType = 'array';
+ public $links;
+ protected $__messagesType = 'Google_Service_Orkut_CommunityMessage';
+ protected $__messagesDataType = 'array';
+ public $messages;
+ public $numberOfReplies;
+ public $title;
+ public function setAuthor(Google_Service_Orkut_OrkutAuthorResource$author) {
+ $this->author = $author;
+ }
+ public function getAuthor() {
+ return $this->author;
+ }
+ public function setBody($body) {
+ $this->body = $body;
+ }
+ public function getBody() {
+ return $this->body;
+ }
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setIsClosed($isClosed) {
+ $this->isClosed = $isClosed;
+ }
+ public function getIsClosed() {
+ return $this->isClosed;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setLastUpdate($lastUpdate) {
+ $this->lastUpdate = $lastUpdate;
+ }
+ public function getLastUpdate() {
+ return $this->lastUpdate;
+ }
+ public function setLatestMessageSnippet($latestMessageSnippet) {
+ $this->latestMessageSnippet = $latestMessageSnippet;
+ }
+ public function getLatestMessageSnippet() {
+ return $this->latestMessageSnippet;
+ }
+ public function setLinks($links) {
+ $this->links = $links;
+ }
+ public function getLinks() {
+ return $this->links;
+ }
+ public function setMessages($messages) {
+ $this->messages = $messages;
+ }
+ public function getMessages() {
+ return $this->messages;
+ }
+ public function setNumberOfReplies($numberOfReplies) {
+ $this->numberOfReplies = $numberOfReplies;
+ }
+ public function getNumberOfReplies() {
+ return $this->numberOfReplies;
+ }
+ public function setTitle($title) {
+ $this->title = $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 $items;
+ public $kind;
+ public $lastPageToken;
+ public $nextPageToken;
+ public $prevPageToken;
+ public function setFirstPageToken($firstPageToken) {
+ $this->firstPageToken = $firstPageToken;
+ }
+ public function getFirstPageToken() {
+ return $this->firstPageToken;
+ }
+ 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 setLastPageToken($lastPageToken) {
+ $this->lastPageToken = $lastPageToken;
+ }
+ public function getLastPageToken() {
+ return $this->lastPageToken;
+ }
+ public function setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+ public function setPrevPageToken($prevPageToken) {
+ $this->prevPageToken = $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 $items;
+ 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_Orkut_OrkutActivityobjectsResource
+ extends Google_Collection {
+ protected $__communityType = 'Google_Service_Orkut_Community';
+ protected $__communityDataType = '';
+ public $community;
+ public $content;
+ public $displayName;
+ public $id;
+ protected $__linksType = 'Google_Service_Orkut_OrkutLinkResource';
+ protected $__linksDataType = 'array';
+ public $links;
+ public $objectType;
+ protected $__personType = 'Google_Service_Orkut_OrkutActivitypersonResource';
+ protected $__personDataType = '';
+ public $person;
+ public function setCommunity(Google_Service_Orkut_Community$community) {
+ $this->community = $community;
+ }
+ public function getCommunity() {
+ return $this->community;
+ }
+ public function setContent($content) {
+ $this->content = $content;
+ }
+ public function getContent() {
+ return $this->content;
+ }
+ 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 setLinks($links) {
+ $this->links = $links;
+ }
+ public function getLinks() {
+ return $this->links;
+ }
+ public function setObjectType($objectType) {
+ $this->objectType = $objectType;
+ }
+ public function getObjectType() {
+ return $this->objectType;
+ }
+ public function setPerson(Google_Service_Orkut_OrkutActivitypersonResource$person) {
+ $this->person = $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 = '';
+ public $image;
+ protected $__nameType = 'Google_Service_Orkut_OrkutActivitypersonResourceName';
+ protected $__nameDataType = '';
+ public $name;
+ public $url;
+ public function setBirthday($birthday) {
+ $this->birthday = $birthday;
+ }
+ public function getBirthday() {
+ return $this->birthday;
+ }
+ public function setGender($gender) {
+ $this->gender = $gender;
+ }
+ public function getGender() {
+ return $this->gender;
+ }
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setImage(Google_Service_Orkut_OrkutActivitypersonResourceImage$image) {
+ $this->image = $image;
+ }
+ public function getImage() {
+ return $this->image;
+ }
+ public function setName(Google_Service_Orkut_OrkutActivitypersonResourceName$name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setUrl($url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
+
+class Google_Service_Orkut_OrkutActivitypersonResourceImage
+ extends Google_Model {
+ public $url;
+ public function setUrl($url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
+
+class Google_Service_Orkut_OrkutActivitypersonResourceName
+ 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_Orkut_OrkutAuthorResource
+ extends Google_Model {
+ public $displayName;
+ public $id;
+ protected $__imageType = 'Google_Service_Orkut_OrkutAuthorResourceImage';
+ protected $__imageDataType = '';
+ public $image;
+ public $url;
+ 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 setImage(Google_Service_Orkut_OrkutAuthorResourceImage$image) {
+ $this->image = $image;
+ }
+ public function getImage() {
+ return $this->image;
+ }
+ public function setUrl($url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
+
+class Google_Service_Orkut_OrkutAuthorResourceImage
+ extends Google_Model {
+ public $url;
+ public function setUrl($url) {
+ $this->url = $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 $image;
+ public $numberOfVotes;
+ public $optionId;
+ public function setDescription($description) {
+ $this->description = $description;
+ }
+ public function getDescription() {
+ return $this->description;
+ }
+ public function setImage(Google_Service_Orkut_OrkutCommunitypolloptionResourceImage$image) {
+ $this->image = $image;
+ }
+ public function getImage() {
+ return $this->image;
+ }
+ public function setNumberOfVotes($numberOfVotes) {
+ $this->numberOfVotes = $numberOfVotes;
+ }
+ public function getNumberOfVotes() {
+ return $this->numberOfVotes;
+ }
+ public function setOptionId($optionId) {
+ $this->optionId = $optionId;
+ }
+ public function getOptionId() {
+ return $this->optionId;
+ }
+}
+
+class Google_Service_Orkut_OrkutCommunitypolloptionResourceImage
+ extends Google_Model {
+ public $url;
+ public function setUrl($url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
+
+class Google_Service_Orkut_OrkutCounterResource
+ extends Google_Model {
+ protected $__linkType = 'Google_Service_Orkut_OrkutLinkResource';
+ protected $__linkDataType = '';
+ public $link;
+ public $name;
+ public $total;
+ public function setLink(Google_Service_Orkut_OrkutLinkResource$link) {
+ $this->link = $link;
+ }
+ public function getLink() {
+ return $this->link;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setTotal($total) {
+ $this->total = $total;
+ }
+ public function getTotal() {
+ return $this->total;
+ }
+}
+
+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 getHref() {
+ return $this->href;
+ }
+ public function setRel($rel) {
+ $this->rel = $rel;
+ }
+ public function getRel() {
+ return $this->rel;
+ }
+ 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_Orkut_Visibility
+ extends Google_Collection {
+ public $kind;
+ protected $__linksType = 'Google_Service_Orkut_OrkutLinkResource';
+ protected $__linksDataType = 'array';
+ public $links;
+ public $visibility;
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setLinks($links) {
+ $this->links = $links;
+ }
+ public function getLinks() {
+ return $this->links;
+ }
+ public function setVisibility($visibility) {
+ $this->visibility = $visibility;
+ }
+ public function getVisibility() {
+ return $this->visibility;
+ }
+}
diff --git a/src/Google/Service/Pagespeedonline.php b/src/Google/Service/Pagespeedonline.php
new file mode 100644
index 0000000..375924b
--- /dev/null
+++ b/src/Google/Service/Pagespeedonline.php
@@ -0,0 +1,525 @@
+
+ * Lets you analyze the performance of a web page and get tailored suggestions to make that page faster.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Pagespeedonline extends Google_Service { + public $pagespeedapi; + /** + * Constructs the internal representation of the Pagespeedonline service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'pagespeedonline/v1/'; + $this->version = 'v1'; + $this->serviceName = 'pagespeedonline'; + + $client->addService($this->serviceName, $this->version); + $this->pagespeedapi = new Google_Service_Pagespeedonline_Pagespeedapi_Resource($this, $this->serviceName, 'pagespeedapi', json_decode('{"methods": {"runpagespeed": {"id": "pagespeedonline.pagespeedapi.runpagespeed", "path": "runPagespeed", "httpMethod": "GET", "parameters": {"locale": {"type": "string", "location": "query"}, "rule": {"type": "string", "repeated": true, "location": "query"}, "screenshot": {"type": "boolean", "default": "false", "location": "query"}, "strategy": {"type": "string", "enum": ["desktop", "mobile"], "location": "query"}, "url": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "Result"}}}}', true)); + + } +} + + + /** + * The "pagespeedapi" collection of methods. + * Typical usage is: + *
+ * $pagespeedonlineService = new Google_PagespeedonlineService(...);
+ * $pagespeedapi = $pagespeedonlineService->pagespeedapi;
+ *
+ */
+ 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 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 bool screenshot Indicates if binary data containing a screenshot should be included
+ * @opt_param string strategy The analysis strategy to use
+ * @return Google_Service_Pagespeedonline_Result
+ */
+ public function runpagespeed($url, $optParams = array()) {
+ $params = array('url' => $url);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('runpagespeed', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Pagespeedonline_Result($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Pagespeedonline_Result
+ extends Google_Collection {
+ protected $__formattedResultsType = 'Google_Service_Pagespeedonline_ResultFormattedResults';
+ protected $__formattedResultsDataType = '';
+ public $formattedResults;
+ public $id;
+ public $invalidRules;
+ public $kind;
+ protected $__pageStatsType = 'Google_Service_Pagespeedonline_ResultPageStats';
+ protected $__pageStatsDataType = '';
+ public $pageStats;
+ public $responseCode;
+ public $score;
+ protected $__screenshotType = 'Google_Service_Pagespeedonline_ResultScreenshot';
+ protected $__screenshotDataType = '';
+ public $screenshot;
+ public $title;
+ protected $__versionType = 'Google_Service_Pagespeedonline_ResultVersion';
+ protected $__versionDataType = '';
+ public $version;
+ public function setFormattedResults(Google_Service_Pagespeedonline_ResultFormattedResults$formattedResults) {
+ $this->formattedResults = $formattedResults;
+ }
+ public function getFormattedResults() {
+ return $this->formattedResults;
+ }
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setInvalidRules($invalidRules) {
+ $this->invalidRules = $invalidRules;
+ }
+ public function getInvalidRules() {
+ return $this->invalidRules;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setPageStats(Google_Service_Pagespeedonline_ResultPageStats$pageStats) {
+ $this->pageStats = $pageStats;
+ }
+ public function getPageStats() {
+ return $this->pageStats;
+ }
+ public function setResponseCode($responseCode) {
+ $this->responseCode = $responseCode;
+ }
+ public function getResponseCode() {
+ return $this->responseCode;
+ }
+ public function setScore($score) {
+ $this->score = $score;
+ }
+ public function getScore() {
+ return $this->score;
+ }
+ public function setScreenshot(Google_Service_Pagespeedonline_ResultScreenshot$screenshot) {
+ $this->screenshot = $screenshot;
+ }
+ public function getScreenshot() {
+ return $this->screenshot;
+ }
+ public function setTitle($title) {
+ $this->title = $title;
+ }
+ public function getTitle() {
+ return $this->title;
+ }
+ public function setVersion(Google_Service_Pagespeedonline_ResultVersion$version) {
+ $this->version = $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';
+ public $ruleResults;
+ public function setLocale($locale) {
+ $this->locale = $locale;
+ }
+ public function getLocale() {
+ return $this->locale;
+ }
+ public function setRuleResults(Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement$ruleResults) {
+ $this->ruleResults = $ruleResults;
+ }
+ public function getRuleResults() {
+ return $this->ruleResults;
+ }
+}
+
+class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElement
+ extends Google_Collection {
+ public $localizedRuleName;
+ public $ruleImpact;
+ public $ruleScore;
+ protected $__urlBlocksType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks';
+ protected $__urlBlocksDataType = 'array';
+ public $urlBlocks;
+ public function setLocalizedRuleName($localizedRuleName) {
+ $this->localizedRuleName = $localizedRuleName;
+ }
+ public function getLocalizedRuleName() {
+ return $this->localizedRuleName;
+ }
+ public function setRuleImpact($ruleImpact) {
+ $this->ruleImpact = $ruleImpact;
+ }
+ public function getRuleImpact() {
+ return $this->ruleImpact;
+ }
+ public function setRuleScore($ruleScore) {
+ $this->ruleScore = $ruleScore;
+ }
+ public function getRuleScore() {
+ return $this->ruleScore;
+ }
+ public function setUrlBlocks($urlBlocks) {
+ $this->urlBlocks = $urlBlocks;
+ }
+ public function getUrlBlocks() {
+ return $this->urlBlocks;
+ }
+}
+
+class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocks
+ extends Google_Collection {
+ protected $__headerType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader';
+ protected $__headerDataType = '';
+ public $header;
+ protected $__urlsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls';
+ protected $__urlsDataType = 'array';
+ public $urls;
+ public function setHeader(Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeader$header) {
+ $this->header = $header;
+ }
+ public function getHeader() {
+ return $this->header;
+ }
+ public function setUrls($urls) {
+ $this->urls = $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 $args;
+ public $format;
+ public function setArgs($args) {
+ $this->args = $args;
+ }
+ public function getArgs() {
+ return $this->args;
+ }
+ public function setFormat($format) {
+ $this->format = $format;
+ }
+ public function getFormat() {
+ return $this->format;
+ }
+}
+
+class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksHeaderArgs
+ 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_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrls
+ extends Google_Collection {
+ protected $__detailsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetails';
+ protected $__detailsDataType = 'array';
+ public $details;
+ protected $__resultType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult';
+ protected $__resultDataType = '';
+ public $result;
+ public function setDetails($details) {
+ $this->details = $details;
+ }
+ public function getDetails() {
+ return $this->details;
+ }
+ public function setResult(Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult$result) {
+ $this->result = $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 $args;
+ public $format;
+ public function setArgs($args) {
+ $this->args = $args;
+ }
+ public function getArgs() {
+ return $this->args;
+ }
+ public function setFormat($format) {
+ $this->format = $format;
+ }
+ public function getFormat() {
+ return $this->format;
+ }
+}
+
+class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsDetailsArgs
+ 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_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResult
+ extends Google_Collection {
+ protected $__argsType = 'Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResultArgs';
+ protected $__argsDataType = 'array';
+ public $args;
+ public $format;
+ public function setArgs($args) {
+ $this->args = $args;
+ }
+ public function getArgs() {
+ return $this->args;
+ }
+ public function setFormat($format) {
+ $this->format = $format;
+ }
+ public function getFormat() {
+ return $this->format;
+ }
+}
+
+class Google_Service_Pagespeedonline_ResultFormattedResultsRuleResultsElementUrlBlocksUrlsResultArgs
+ 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_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 getCssResponseBytes() {
+ return $this->cssResponseBytes;
+ }
+ public function setFlashResponseBytes($flashResponseBytes) {
+ $this->flashResponseBytes = $flashResponseBytes;
+ }
+ public function getFlashResponseBytes() {
+ return $this->flashResponseBytes;
+ }
+ public function setHtmlResponseBytes($htmlResponseBytes) {
+ $this->htmlResponseBytes = $htmlResponseBytes;
+ }
+ public function getHtmlResponseBytes() {
+ return $this->htmlResponseBytes;
+ }
+ public function setImageResponseBytes($imageResponseBytes) {
+ $this->imageResponseBytes = $imageResponseBytes;
+ }
+ public function getImageResponseBytes() {
+ return $this->imageResponseBytes;
+ }
+ public function setJavascriptResponseBytes($javascriptResponseBytes) {
+ $this->javascriptResponseBytes = $javascriptResponseBytes;
+ }
+ public function getJavascriptResponseBytes() {
+ return $this->javascriptResponseBytes;
+ }
+ public function setNumberCssResources($numberCssResources) {
+ $this->numberCssResources = $numberCssResources;
+ }
+ public function getNumberCssResources() {
+ return $this->numberCssResources;
+ }
+ public function setNumberHosts($numberHosts) {
+ $this->numberHosts = $numberHosts;
+ }
+ public function getNumberHosts() {
+ return $this->numberHosts;
+ }
+ public function setNumberJsResources($numberJsResources) {
+ $this->numberJsResources = $numberJsResources;
+ }
+ public function getNumberJsResources() {
+ return $this->numberJsResources;
+ }
+ public function setNumberResources($numberResources) {
+ $this->numberResources = $numberResources;
+ }
+ public function getNumberResources() {
+ return $this->numberResources;
+ }
+ public function setNumberStaticResources($numberStaticResources) {
+ $this->numberStaticResources = $numberStaticResources;
+ }
+ public function getNumberStaticResources() {
+ return $this->numberStaticResources;
+ }
+ public function setOtherResponseBytes($otherResponseBytes) {
+ $this->otherResponseBytes = $otherResponseBytes;
+ }
+ public function getOtherResponseBytes() {
+ return $this->otherResponseBytes;
+ }
+ public function setTextResponseBytes($textResponseBytes) {
+ $this->textResponseBytes = $textResponseBytes;
+ }
+ public function getTextResponseBytes() {
+ return $this->textResponseBytes;
+ }
+ public function setTotalRequestBytes($totalRequestBytes) {
+ $this->totalRequestBytes = $totalRequestBytes;
+ }
+ public function getTotalRequestBytes() {
+ return $this->totalRequestBytes;
+ }
+}
+
+class Google_Service_Pagespeedonline_ResultScreenshot
+ extends Google_Model {
+ public $data;
+ public $height;
+ public $mime_type;
+ public $width;
+ public function setData($data) {
+ $this->data = $data;
+ }
+ public function getData() {
+ return $this->data;
+ }
+ public function setHeight($height) {
+ $this->height = $height;
+ }
+ public function getHeight() {
+ return $this->height;
+ }
+ public function setMime_type($mime_type) {
+ $this->mime_type = $mime_type;
+ }
+ public function getMime_type() {
+ return $this->mime_type;
+ }
+ public function setWidth($width) {
+ $this->width = $width;
+ }
+ public function getWidth() {
+ return $this->width;
+ }
+}
+
+class Google_Service_Pagespeedonline_ResultVersion
+ extends Google_Model {
+ public $major;
+ public $minor;
+ public function setMajor($major) {
+ $this->major = $major;
+ }
+ public function getMajor() {
+ return $this->major;
+ }
+ public function setMinor($minor) {
+ $this->minor = $minor;
+ }
+ public function getMinor() {
+ return $this->minor;
+ }
+}
diff --git a/src/Google/Service/Plus.php b/src/Google/Service/Plus.php
index 522a811..41d120c 100644
--- a/src/Google/Service/Plus.php
+++ b/src/Google/Service/Plus.php
@@ -56,7 +56,7 @@ public function __construct(Google_Client $client) {
* The "activities" collection of methods.
* Typical usage is:
*
- * $plusService = new google_PlusService(...);
+ * $plusService = new Google_PlusService(...);
* $activities = $plusService->activities;
*
*/
@@ -129,7 +129,7 @@ public function search($query, $optParams = array()) {
* The "comments" collection of methods.
* Typical usage is:
*
- * $plusService = new google_PlusService(...);
+ * $plusService = new Google_PlusService(...);
* $comments = $plusService->comments;
*
*/
@@ -180,7 +180,7 @@ public function listComments($activityId, $optParams = array()) {
* The "moments" collection of methods.
* Typical usage is:
*
- * $plusService = new google_PlusService(...);
+ * $plusService = new Google_PlusService(...);
* $moments = $plusService->moments;
*
*/
@@ -193,7 +193,7 @@ class Google_Service_Plus_Moments_Resource extends Google_Service_Resource {
*
* @param string $userId The ID of the user to record activities 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 Google_Moment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool debug Return the moment as written. Should be used only for debugging.
@@ -250,7 +250,7 @@ public function remove($id, $optParams = array()) {
* The "people" collection of methods.
* Typical usage is:
*
- * $plusService = new google_PlusService(...);
+ * $plusService = new Google_PlusService(...);
* $people = $plusService->people;
*
*/
@@ -345,7 +345,7 @@ public function search($query, $optParams = array()) {
-class Google_Service_Plus_Acl
+class Google_Service_Plus_Acl
extends Google_Collection {
public $description;
protected $__itemsType = 'Google_Service_Plus_PlusAclentryResource';
@@ -372,7 +372,7 @@ public function getKind() {
}
}
-class Google_Service_Plus_Activity
+class Google_Service_Plus_Activity
extends Google_Model {
protected $__accessType = 'Google_Service_Plus_Acl';
protected $__accessDataType = '';
@@ -526,7 +526,7 @@ public function getVerb() {
}
}
-class Google_Service_Plus_ActivityActor
+class Google_Service_Plus_ActivityActor
extends Google_Model {
public $displayName;
public $id;
@@ -569,7 +569,7 @@ public function getUrl() {
}
}
-class Google_Service_Plus_ActivityActorImage
+class Google_Service_Plus_ActivityActorImage
extends Google_Model {
public $url;
public function setUrl($url) {
@@ -580,7 +580,7 @@ public function getUrl() {
}
}
-class Google_Service_Plus_ActivityActorName
+class Google_Service_Plus_ActivityActorName
extends Google_Model {
public $familyName;
public $givenName;
@@ -598,7 +598,7 @@ public function getGivenName() {
}
}
-class Google_Service_Plus_ActivityFeed
+class Google_Service_Plus_ActivityFeed
extends Google_Collection {
public $etag;
public $id;
@@ -667,7 +667,7 @@ public function getUpdated() {
}
}
-class Google_Service_Plus_ActivityObject
+class Google_Service_Plus_ActivityObject
extends Google_Collection {
protected $__actorType = 'Google_Service_Plus_ActivityObjectActor';
protected $__actorDataType = '';
@@ -751,7 +751,7 @@ public function getUrl() {
}
}
-class Google_Service_Plus_ActivityObjectActor
+class Google_Service_Plus_ActivityObjectActor
extends Google_Model {
public $displayName;
public $id;
@@ -785,7 +785,7 @@ public function getUrl() {
}
}
-class Google_Service_Plus_ActivityObjectActorImage
+class Google_Service_Plus_ActivityObjectActorImage
extends Google_Model {
public $url;
public function setUrl($url) {
@@ -796,7 +796,7 @@ public function getUrl() {
}
}
-class Google_Service_Plus_ActivityObjectAttachments
+class Google_Service_Plus_ActivityObjectAttachments
extends Google_Collection {
public $content;
public $displayName;
@@ -871,7 +871,7 @@ public function getUrl() {
}
}
-class Google_Service_Plus_ActivityObjectAttachmentsEmbed
+class Google_Service_Plus_ActivityObjectAttachmentsEmbed
extends Google_Model {
public $type;
public $url;
@@ -889,7 +889,7 @@ public function getUrl() {
}
}
-class Google_Service_Plus_ActivityObjectAttachmentsFullImage
+class Google_Service_Plus_ActivityObjectAttachmentsFullImage
extends Google_Model {
public $height;
public $type;
@@ -921,7 +921,7 @@ public function getWidth() {
}
}
-class Google_Service_Plus_ActivityObjectAttachmentsImage
+class Google_Service_Plus_ActivityObjectAttachmentsImage
extends Google_Model {
public $height;
public $type;
@@ -953,7 +953,7 @@ public function getWidth() {
}
}
-class Google_Service_Plus_ActivityObjectAttachmentsThumbnails
+class Google_Service_Plus_ActivityObjectAttachmentsThumbnails
extends Google_Model {
public $description;
protected $__imageType = 'Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage';
@@ -980,7 +980,7 @@ public function getUrl() {
}
}
-class Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage
+class Google_Service_Plus_ActivityObjectAttachmentsThumbnailsImage
extends Google_Model {
public $height;
public $type;
@@ -1012,7 +1012,7 @@ public function getWidth() {
}
}
-class Google_Service_Plus_ActivityObjectPlusoners
+class Google_Service_Plus_ActivityObjectPlusoners
extends Google_Model {
public $selfLink;
public $totalItems;
@@ -1030,7 +1030,7 @@ public function getTotalItems() {
}
}
-class Google_Service_Plus_ActivityObjectReplies
+class Google_Service_Plus_ActivityObjectReplies
extends Google_Model {
public $selfLink;
public $totalItems;
@@ -1048,7 +1048,7 @@ public function getTotalItems() {
}
}
-class Google_Service_Plus_ActivityObjectResharers
+class Google_Service_Plus_ActivityObjectResharers
extends Google_Model {
public $selfLink;
public $totalItems;
@@ -1066,7 +1066,7 @@ public function getTotalItems() {
}
}
-class Google_Service_Plus_ActivityProvider
+class Google_Service_Plus_ActivityProvider
extends Google_Model {
public $title;
public function setTitle($title) {
@@ -1077,7 +1077,7 @@ public function getTitle() {
}
}
-class Google_Service_Plus_Comment
+class Google_Service_Plus_Comment
extends Google_Collection {
protected $__actorType = 'Google_Service_Plus_CommentActor';
protected $__actorDataType = '';
@@ -1166,7 +1166,7 @@ public function getVerb() {
}
}
-class Google_Service_Plus_CommentActor
+class Google_Service_Plus_CommentActor
extends Google_Model {
public $displayName;
public $id;
@@ -1200,7 +1200,7 @@ public function getUrl() {
}
}
-class Google_Service_Plus_CommentActorImage
+class Google_Service_Plus_CommentActorImage
extends Google_Model {
public $url;
public function setUrl($url) {
@@ -1211,7 +1211,7 @@ public function getUrl() {
}
}
-class Google_Service_Plus_CommentFeed
+class Google_Service_Plus_CommentFeed
extends Google_Collection {
public $etag;
public $id;
@@ -1273,7 +1273,7 @@ public function getUpdated() {
}
}
-class Google_Service_Plus_CommentInReplyTo
+class Google_Service_Plus_CommentInReplyTo
extends Google_Model {
public $id;
public $url;
@@ -1291,7 +1291,7 @@ public function getUrl() {
}
}
-class Google_Service_Plus_CommentObject
+class Google_Service_Plus_CommentObject
extends Google_Model {
public $content;
public $objectType;
@@ -1316,7 +1316,7 @@ public function getOriginalContent() {
}
}
-class Google_Service_Plus_CommentPlusoners
+class Google_Service_Plus_CommentPlusoners
extends Google_Model {
public $totalItems;
public function setTotalItems($totalItems) {
@@ -1327,7 +1327,7 @@ public function getTotalItems() {
}
}
-class Google_Service_Plus_ItemScope
+class Google_Service_Plus_ItemScope
extends Google_Collection {
protected $__aboutType = 'Google_Service_Plus_ItemScope';
protected $__aboutDataType = '';
@@ -1746,7 +1746,7 @@ public function getWorstRating() {
}
}
-class Google_Service_Plus_Moment
+class Google_Service_Plus_Moment
extends Google_Model {
public $id;
public $kind;
@@ -1796,7 +1796,7 @@ public function getType() {
}
}
-class Google_Service_Plus_MomentsFeed
+class Google_Service_Plus_MomentsFeed
extends Google_Collection {
public $etag;
protected $__itemsType = 'Google_Service_Plus_Moment';
@@ -1858,7 +1858,7 @@ public function getUpdated() {
}
}
-class Google_Service_Plus_PeopleFeed
+class Google_Service_Plus_PeopleFeed
extends Google_Collection {
public $etag;
protected $__itemsType = 'Google_Service_Plus_Person';
@@ -1913,7 +1913,7 @@ public function getTotalItems() {
}
}
-class Google_Service_Plus_Person
+class Google_Service_Plus_Person
extends Google_Collection {
public $aboutMe;
protected $__ageRangeType = 'Google_Service_Plus_PersonAgeRange';
@@ -2122,7 +2122,7 @@ public function getVerified() {
}
}
-class Google_Service_Plus_PersonAgeRange
+class Google_Service_Plus_PersonAgeRange
extends Google_Model {
public $max;
public $min;
@@ -2140,7 +2140,7 @@ public function getMin() {
}
}
-class Google_Service_Plus_PersonCover
+class Google_Service_Plus_PersonCover
extends Google_Model {
protected $__coverInfoType = 'Google_Service_Plus_PersonCoverCoverInfo';
protected $__coverInfoDataType = '';
@@ -2169,7 +2169,7 @@ public function getLayout() {
}
}
-class Google_Service_Plus_PersonCoverCoverInfo
+class Google_Service_Plus_PersonCoverCoverInfo
extends Google_Model {
public $leftImageOffset;
public $topImageOffset;
@@ -2187,7 +2187,7 @@ public function getTopImageOffset() {
}
}
-class Google_Service_Plus_PersonCoverCoverPhoto
+class Google_Service_Plus_PersonCoverCoverPhoto
extends Google_Model {
public $height;
public $url;
@@ -2212,7 +2212,7 @@ public function getWidth() {
}
}
-class Google_Service_Plus_PersonEmails
+class Google_Service_Plus_PersonEmails
extends Google_Model {
public $primary;
public $type;
@@ -2237,7 +2237,7 @@ public function getValue() {
}
}
-class Google_Service_Plus_PersonImage
+class Google_Service_Plus_PersonImage
extends Google_Model {
public $url;
public function setUrl($url) {
@@ -2248,7 +2248,7 @@ public function getUrl() {
}
}
-class Google_Service_Plus_PersonName
+class Google_Service_Plus_PersonName
extends Google_Model {
public $familyName;
public $formatted;
@@ -2294,7 +2294,7 @@ public function getMiddleName() {
}
}
-class Google_Service_Plus_PersonOrganizations
+class Google_Service_Plus_PersonOrganizations
extends Google_Model {
public $department;
public $description;
@@ -2361,7 +2361,7 @@ public function getType() {
}
}
-class Google_Service_Plus_PersonPlacesLived
+class Google_Service_Plus_PersonPlacesLived
extends Google_Model {
public $primary;
public $value;
@@ -2379,7 +2379,7 @@ public function getValue() {
}
}
-class Google_Service_Plus_PersonUrls
+class Google_Service_Plus_PersonUrls
extends Google_Model {
public $label;
public $type;
@@ -2404,7 +2404,7 @@ public function getValue() {
}
}
-class Google_Service_Plus_Place
+class Google_Service_Plus_Place
extends Google_Model {
protected $__addressType = 'Google_Service_Plus_PlaceAddress';
protected $__addressDataType = '';
@@ -2440,7 +2440,7 @@ public function getPosition() {
}
}
-class Google_Service_Plus_PlaceAddress
+class Google_Service_Plus_PlaceAddress
extends Google_Model {
public $formatted;
public function setFormatted($formatted) {
@@ -2451,7 +2451,7 @@ public function getFormatted() {
}
}
-class Google_Service_Plus_PlacePosition
+class Google_Service_Plus_PlacePosition
extends Google_Model {
public $latitude;
public $longitude;
@@ -2469,7 +2469,7 @@ public function getLongitude() {
}
}
-class Google_Service_Plus_PlusAclentryResource
+class Google_Service_Plus_PlusAclentryResource
extends Google_Model {
public $displayName;
public $id;
diff --git a/src/Google/Service/Prediction.php b/src/Google/Service/Prediction.php
new file mode 100644
index 0000000..b07d1be
--- /dev/null
+++ b/src/Google/Service/Prediction.php
@@ -0,0 +1,802 @@
+
+ * Lets you access a cloud hosted machine learning service that makes it easy to build smart apps
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Prediction extends Google_Service { + public $hostedmodels; + public $trainedmodels; + /** + * Constructs the internal representation of the Prediction service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'prediction/v1.5/'; + $this->version = 'v1.5'; + $this->serviceName = 'prediction'; + + $client->addService($this->serviceName, $this->version); + $this->hostedmodels = new Google_Service_Prediction_Hostedmodels_Resource($this, $this->serviceName, 'hostedmodels', json_decode('{"methods": {"predict": {"id": "prediction.hostedmodels.predict", "path": "hostedmodels/{hostedModelName}/predict", "httpMethod": "POST", "parameters": {"hostedModelName": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Input"}, "response": {"$ref": "Output"}, "scopes": ["https://www.googleapis.com/auth/prediction"]}}}', true)); + $this->trainedmodels = new Google_Service_Prediction_Trainedmodels_Resource($this, $this->serviceName, 'trainedmodels', json_decode('{"methods": {"analyze": {"id": "prediction.trainedmodels.analyze", "path": "trainedmodels/{id}/analyze", "httpMethod": "GET", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Analyze"}, "scopes": ["https://www.googleapis.com/auth/prediction"]}, "delete": {"id": "prediction.trainedmodels.delete", "path": "trainedmodels/{id}", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/prediction"]}, "get": {"id": "prediction.trainedmodels.get", "path": "trainedmodels/{id}", "httpMethod": "GET", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Training"}, "scopes": ["https://www.googleapis.com/auth/prediction"]}, "insert": {"id": "prediction.trainedmodels.insert", "path": "trainedmodels", "httpMethod": "POST", "request": {"$ref": "Training"}, "response": {"$ref": "Training"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write", "https://www.googleapis.com/auth/prediction"]}, "list": {"id": "prediction.trainedmodels.list", "path": "trainedmodels/list", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "List"}, "scopes": ["https://www.googleapis.com/auth/prediction"]}, "predict": {"id": "prediction.trainedmodels.predict", "path": "trainedmodels/{id}/predict", "httpMethod": "POST", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Input"}, "response": {"$ref": "Output"}, "scopes": ["https://www.googleapis.com/auth/prediction"]}, "update": {"id": "prediction.trainedmodels.update", "path": "trainedmodels/{id}", "httpMethod": "PUT", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Update"}, "response": {"$ref": "Training"}, "scopes": ["https://www.googleapis.com/auth/prediction"]}}}', true)); + + } +} + + + /** + * The "hostedmodels" collection of methods. + * Typical usage is: + *
+ * $predictionService = new Google_PredictionService(...);
+ * $hostedmodels = $predictionService->hostedmodels;
+ *
+ */
+ class Google_Service_Prediction_Hostedmodels_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Submit input and request an output against a hosted model. (hostedmodels.predict)
+ *
+ * @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($hostedModelName, Google_Service_Prediction_Input $postBody, $optParams = array()) {
+ $params = array('hostedModelName' => $hostedModelName, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('predict', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Prediction_Output($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "trainedmodels" collection of methods.
+ * Typical usage is:
+ *
+ * $predictionService = new Google_PredictionService(...);
+ * $trainedmodels = $predictionService->trainedmodels;
+ *
+ */
+ 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 $id The unique name for the predictive model.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Prediction_Analyze
+ */
+ public function analyze($id, $optParams = array()) {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('analyze', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Prediction_Analyze($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Delete a trained model. (trainedmodels.delete)
+ *
+ * @param string $id The unique name for the predictive model.
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($id, $optParams = array()) {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * Check training status of your model. (trainedmodels.get)
+ *
+ * @param string $id The unique name for the predictive model.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Prediction_Training
+ */
+ public function get($id, $optParams = array()) {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Prediction_Training($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Begin training your model. (trainedmodels.insert)
+ *
+ * @param Google_Training $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Prediction_Training
+ */
+ public function insert(Google_Service_Prediction_Training $postBody, $optParams = array()) {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Prediction_Training($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List available models. (trainedmodels.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string pageToken Pagination token
+ * @return Google_Service_Prediction_PredictionList
+ */
+ public function listTrainedmodels($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Prediction_PredictionList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Submit model id and request a prediction. (trainedmodels.predict)
+ *
+ * @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($id, Google_Service_Prediction_Input $postBody, $optParams = array()) {
+ $params = array('id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('predict', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Prediction_Output($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Add new data to a trained model. (trainedmodels.update)
+ *
+ * @param string $id The unique name for the predictive model.
+ * @param Google_Update $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Prediction_Training
+ */
+ public function update($id, Google_Service_Prediction_Update $postBody, $optParams = array()) {
+ $params = array('id' => $id, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Prediction_Training($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Prediction_Analyze
+ extends Google_Collection {
+ protected $__dataDescriptionType = 'Google_Service_Prediction_AnalyzeDataDescription';
+ protected $__dataDescriptionDataType = '';
+ public $dataDescription;
+ public $errors;
+ public $id;
+ public $kind;
+ protected $__modelDescriptionType = 'Google_Service_Prediction_AnalyzeModelDescription';
+ protected $__modelDescriptionDataType = '';
+ public $modelDescription;
+ public $selfLink;
+ public function setDataDescription(Google_Service_Prediction_AnalyzeDataDescription$dataDescription) {
+ $this->dataDescription = $dataDescription;
+ }
+ public function getDataDescription() {
+ return $this->dataDescription;
+ }
+ 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 setModelDescription(Google_Service_Prediction_AnalyzeModelDescription$modelDescription) {
+ $this->modelDescription = $modelDescription;
+ }
+ public function getModelDescription() {
+ return $this->modelDescription;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_Prediction_AnalyzeDataDescription
+ extends Google_Collection {
+ protected $__featuresType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeatures';
+ protected $__featuresDataType = 'array';
+ public $features;
+ protected $__outputFeatureType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature';
+ protected $__outputFeatureDataType = '';
+ public $outputFeature;
+ public function setFeatures($features) {
+ $this->features = $features;
+ }
+ public function getFeatures() {
+ return $this->features;
+ }
+ public function setOutputFeature(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature$outputFeature) {
+ $this->outputFeature = $outputFeature;
+ }
+ public function getOutputFeature() {
+ return $this->outputFeature;
+ }
+}
+
+class Google_Service_Prediction_AnalyzeDataDescriptionFeatures
+ extends Google_Model {
+ protected $__categoricalType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical';
+ protected $__categoricalDataType = '';
+ public $categorical;
+ public $index;
+ protected $__numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric';
+ protected $__numericDataType = '';
+ public $numeric;
+ protected $__textType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText';
+ protected $__textDataType = '';
+ public $text;
+ public function setCategorical(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical$categorical) {
+ $this->categorical = $categorical;
+ }
+ public function getCategorical() {
+ return $this->categorical;
+ }
+ public function setIndex($index) {
+ $this->index = $index;
+ }
+ public function getIndex() {
+ return $this->index;
+ }
+ public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric$numeric) {
+ $this->numeric = $numeric;
+ }
+ public function getNumeric() {
+ return $this->numeric;
+ }
+ public function setText(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText$text) {
+ $this->text = $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';
+ public $values;
+ public function setCount($count) {
+ $this->count = $count;
+ }
+ public function getCount() {
+ return $this->count;
+ }
+ public function setValues($values) {
+ $this->values = $values;
+ }
+ public function getValues() {
+ return $this->values;
+ }
+}
+
+class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues
+ extends Google_Model {
+ public $count;
+ public $value;
+ public function setCount($count) {
+ $this->count = $count;
+ }
+ public function getCount() {
+ return $this->count;
+ }
+ public function setValue($value) {
+ $this->value = $value;
+ }
+ public function getValue() {
+ return $this->value;
+ }
+}
+
+class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric
+ extends Google_Model {
+ public $count;
+ public $mean;
+ public $variance;
+ public function setCount($count) {
+ $this->count = $count;
+ }
+ public function getCount() {
+ return $this->count;
+ }
+ public function setMean($mean) {
+ $this->mean = $mean;
+ }
+ public function getMean() {
+ return $this->mean;
+ }
+ public function setVariance($variance) {
+ $this->variance = $variance;
+ }
+ public function getVariance() {
+ return $this->variance;
+ }
+}
+
+class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText
+ extends Google_Model {
+ public $count;
+ public function setCount($count) {
+ $this->count = $count;
+ }
+ public function getCount() {
+ return $this->count;
+ }
+}
+
+class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature
+ extends Google_Collection {
+ protected $__numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric';
+ protected $__numericDataType = '';
+ public $numeric;
+ protected $__textType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText';
+ protected $__textDataType = 'array';
+ public $text;
+ public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric$numeric) {
+ $this->numeric = $numeric;
+ }
+ public function getNumeric() {
+ return $this->numeric;
+ }
+ public function setText($text) {
+ $this->text = $text;
+ }
+ public function getText() {
+ return $this->text;
+ }
+}
+
+class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric
+ extends Google_Model {
+ public $count;
+ public $mean;
+ public $variance;
+ public function setCount($count) {
+ $this->count = $count;
+ }
+ public function getCount() {
+ return $this->count;
+ }
+ public function setMean($mean) {
+ $this->mean = $mean;
+ }
+ public function getMean() {
+ return $this->mean;
+ }
+ public function setVariance($variance) {
+ $this->variance = $variance;
+ }
+ public function getVariance() {
+ return $this->variance;
+ }
+}
+
+class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText
+ extends Google_Model {
+ public $count;
+ public $value;
+ public function setCount($count) {
+ $this->count = $count;
+ }
+ public function getCount() {
+ return $this->count;
+ }
+ public function setValue($value) {
+ $this->value = $value;
+ }
+ public function getValue() {
+ return $this->value;
+ }
+}
+
+class Google_Service_Prediction_AnalyzeModelDescription
+ extends Google_Model {
+ public $confusionMatrix;
+ public $confusionMatrixRowTotals;
+ protected $__modelinfoType = 'Google_Service_Prediction_Training';
+ protected $__modelinfoDataType = '';
+ public $modelinfo;
+ public function setConfusionMatrix($confusionMatrix) {
+ $this->confusionMatrix = $confusionMatrix;
+ }
+ public function getConfusionMatrix() {
+ return $this->confusionMatrix;
+ }
+ public function setConfusionMatrixRowTotals($confusionMatrixRowTotals) {
+ $this->confusionMatrixRowTotals = $confusionMatrixRowTotals;
+ }
+ public function getConfusionMatrixRowTotals() {
+ return $this->confusionMatrixRowTotals;
+ }
+ public function setModelinfo(Google_Service_Prediction_Training$modelinfo) {
+ $this->modelinfo = $modelinfo;
+ }
+ public function getModelinfo() {
+ return $this->modelinfo;
+ }
+}
+
+class Google_Service_Prediction_Input
+ extends Google_Model {
+ protected $__inputType = 'Google_Service_Prediction_InputInput';
+ protected $__inputDataType = '';
+ public $input;
+ public function setInput(Google_Service_Prediction_InputInput$input) {
+ $this->input = $input;
+ }
+ public function getInput() {
+ return $this->input;
+ }
+}
+
+class Google_Service_Prediction_InputInput
+ extends Google_Collection {
+ public $csvInstance;
+ public function setCsvInstance($csvInstance) {
+ $this->csvInstance = $csvInstance;
+ }
+ public function getCsvInstance() {
+ return $this->csvInstance;
+ }
+}
+
+class Google_Service_Prediction_Output
+ extends Google_Collection {
+ public $id;
+ public $kind;
+ public $outputLabel;
+ protected $__outputMultiType = 'Google_Service_Prediction_OutputOutputMulti';
+ protected $__outputMultiDataType = 'array';
+ public $outputMulti;
+ public $outputValue;
+ public $selfLink;
+ 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 setOutputLabel($outputLabel) {
+ $this->outputLabel = $outputLabel;
+ }
+ public function getOutputLabel() {
+ return $this->outputLabel;
+ }
+ public function setOutputMulti($outputMulti) {
+ $this->outputMulti = $outputMulti;
+ }
+ public function getOutputMulti() {
+ return $this->outputMulti;
+ }
+ public function setOutputValue($outputValue) {
+ $this->outputValue = $outputValue;
+ }
+ public function getOutputValue() {
+ return $this->outputValue;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_Prediction_OutputOutputMulti
+ extends Google_Model {
+ public $label;
+ public $score;
+ public function setLabel($label) {
+ $this->label = $label;
+ }
+ public function getLabel() {
+ return $this->label;
+ }
+ public function setScore($score) {
+ $this->score = $score;
+ }
+ public function getScore() {
+ return $this->score;
+ }
+}
+
+class Google_Service_Prediction_PredictionList
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Prediction_Training';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $nextPageToken;
+ public $selfLink;
+ 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_Prediction_Training
+ extends Google_Collection {
+ public $created;
+ public $id;
+ public $kind;
+ protected $__modelInfoType = 'Google_Service_Prediction_TrainingModelInfo';
+ protected $__modelInfoDataType = '';
+ public $modelInfo;
+ public $modelType;
+ public $selfLink;
+ public $storageDataLocation;
+ public $storagePMMLLocation;
+ public $storagePMMLModelLocation;
+ public $trainingComplete;
+ protected $__trainingInstancesType = 'Google_Service_Prediction_TrainingTrainingInstances';
+ protected $__trainingInstancesDataType = 'array';
+ public $trainingInstances;
+ public $trainingStatus;
+ public $utility;
+ 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 setModelInfo(Google_Service_Prediction_TrainingModelInfo$modelInfo) {
+ $this->modelInfo = $modelInfo;
+ }
+ public function getModelInfo() {
+ return $this->modelInfo;
+ }
+ public function setModelType($modelType) {
+ $this->modelType = $modelType;
+ }
+ public function getModelType() {
+ return $this->modelType;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+ public function setStorageDataLocation($storageDataLocation) {
+ $this->storageDataLocation = $storageDataLocation;
+ }
+ public function getStorageDataLocation() {
+ return $this->storageDataLocation;
+ }
+ public function setStoragePMMLLocation($storagePMMLLocation) {
+ $this->storagePMMLLocation = $storagePMMLLocation;
+ }
+ public function getStoragePMMLLocation() {
+ return $this->storagePMMLLocation;
+ }
+ public function setStoragePMMLModelLocation($storagePMMLModelLocation) {
+ $this->storagePMMLModelLocation = $storagePMMLModelLocation;
+ }
+ public function getStoragePMMLModelLocation() {
+ return $this->storagePMMLModelLocation;
+ }
+ public function setTrainingComplete($trainingComplete) {
+ $this->trainingComplete = $trainingComplete;
+ }
+ public function getTrainingComplete() {
+ return $this->trainingComplete;
+ }
+ public function setTrainingInstances($trainingInstances) {
+ $this->trainingInstances = $trainingInstances;
+ }
+ public function getTrainingInstances() {
+ return $this->trainingInstances;
+ }
+ public function setTrainingStatus($trainingStatus) {
+ $this->trainingStatus = $trainingStatus;
+ }
+ public function getTrainingStatus() {
+ return $this->trainingStatus;
+ }
+ public function setUtility($utility) {
+ $this->utility = $utility;
+ }
+ public function getUtility() {
+ return $this->utility;
+ }
+}
+
+class Google_Service_Prediction_TrainingModelInfo
+ extends Google_Model {
+ public $classWeightedAccuracy;
+ public $classificationAccuracy;
+ public $meanSquaredError;
+ public $modelType;
+ public $numberInstances;
+ public $numberLabels;
+ public function setClassWeightedAccuracy($classWeightedAccuracy) {
+ $this->classWeightedAccuracy = $classWeightedAccuracy;
+ }
+ public function getClassWeightedAccuracy() {
+ return $this->classWeightedAccuracy;
+ }
+ public function setClassificationAccuracy($classificationAccuracy) {
+ $this->classificationAccuracy = $classificationAccuracy;
+ }
+ public function getClassificationAccuracy() {
+ return $this->classificationAccuracy;
+ }
+ public function setMeanSquaredError($meanSquaredError) {
+ $this->meanSquaredError = $meanSquaredError;
+ }
+ public function getMeanSquaredError() {
+ return $this->meanSquaredError;
+ }
+ public function setModelType($modelType) {
+ $this->modelType = $modelType;
+ }
+ public function getModelType() {
+ return $this->modelType;
+ }
+ public function setNumberInstances($numberInstances) {
+ $this->numberInstances = $numberInstances;
+ }
+ public function getNumberInstances() {
+ return $this->numberInstances;
+ }
+ public function setNumberLabels($numberLabels) {
+ $this->numberLabels = $numberLabels;
+ }
+ public function getNumberLabels() {
+ return $this->numberLabels;
+ }
+}
+
+class Google_Service_Prediction_TrainingTrainingInstances
+ extends Google_Collection {
+ public $csvInstance;
+ public $output;
+ public function setCsvInstance($csvInstance) {
+ $this->csvInstance = $csvInstance;
+ }
+ public function getCsvInstance() {
+ return $this->csvInstance;
+ }
+ public function setOutput($output) {
+ $this->output = $output;
+ }
+ public function getOutput() {
+ return $this->output;
+ }
+}
+
+class Google_Service_Prediction_Update
+ extends Google_Collection {
+ public $csvInstance;
+ public $label;
+ public $output;
+ public function setCsvInstance($csvInstance) {
+ $this->csvInstance = $csvInstance;
+ }
+ public function getCsvInstance() {
+ return $this->csvInstance;
+ }
+ public function setLabel($label) {
+ $this->label = $label;
+ }
+ public function getLabel() {
+ return $this->label;
+ }
+ public function setOutput($output) {
+ $this->output = $output;
+ }
+ public function getOutput() {
+ return $this->output;
+ }
+}
diff --git a/src/Google/Service/Reseller.php b/src/Google/Service/Reseller.php
new file mode 100644
index 0000000..797a4e7
--- /dev/null
+++ b/src/Google/Service/Reseller.php
@@ -0,0 +1,670 @@
+
+ * Lets you create and manage your customers and their subscriptions.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Reseller extends Google_Service { + public $customers; + public $subscriptions; + /** + * Constructs the internal representation of the Reseller service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'apps/reseller/v1/'; + $this->version = 'v1'; + $this->serviceName = 'reseller'; + + $client->addService($this->serviceName, $this->version); + $this->customers = new Google_Service_Reseller_Customers_Resource($this, $this->serviceName, 'customers', json_decode('{"methods": {"get": {"id": "reseller.customers.get", "path": "customers/{customerId}", "httpMethod": "GET", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Customer"}}, "insert": {"id": "reseller.customers.insert", "path": "customers", "httpMethod": "POST", "parameters": {"customerAuthToken": {"type": "string", "location": "query"}}, "request": {"$ref": "Customer"}, "response": {"$ref": "Customer"}}, "patch": {"id": "reseller.customers.patch", "path": "customers/{customerId}", "httpMethod": "PATCH", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Customer"}, "response": {"$ref": "Customer"}}, "update": {"id": "reseller.customers.update", "path": "customers/{customerId}", "httpMethod": "PUT", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Customer"}, "response": {"$ref": "Customer"}}}}', true)); + $this->subscriptions = new Google_Service_Reseller_Subscriptions_Resource($this, $this->serviceName, 'subscriptions', json_decode('{"methods": {"changePlan": {"id": "reseller.subscriptions.changePlan", "path": "customers/{customerId}/subscriptions/{subscriptionId}/changePlan", "httpMethod": "POST", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ChangePlanRequest"}, "response": {"$ref": "Subscription"}}, "changeRenewalSettings": {"id": "reseller.subscriptions.changeRenewalSettings", "path": "customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings", "httpMethod": "POST", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "RenewalSettings"}, "response": {"$ref": "Subscription"}}, "changeSeats": {"id": "reseller.subscriptions.changeSeats", "path": "customers/{customerId}/subscriptions/{subscriptionId}/changeSeats", "httpMethod": "POST", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Seats"}, "response": {"$ref": "Subscription"}}, "delete": {"id": "reseller.subscriptions.delete", "path": "customers/{customerId}/subscriptions/{subscriptionId}", "httpMethod": "DELETE", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "deletionType": {"type": "string", "required": true, "enum": ["cancel", "downgrade", "suspend"], "location": "query"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}}}, "get": {"id": "reseller.subscriptions.get", "path": "customers/{customerId}/subscriptions/{subscriptionId}", "httpMethod": "GET", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Subscription"}}, "insert": {"id": "reseller.subscriptions.insert", "path": "customers/{customerId}/subscriptions", "httpMethod": "POST", "parameters": {"customerAuthToken": {"type": "string", "location": "query"}, "customerId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Subscription"}, "response": {"$ref": "Subscription"}}, "list": {"id": "reseller.subscriptions.list", "path": "subscriptions", "httpMethod": "GET", "parameters": {"customerNamePrefix": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "1", "maximum": "100", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "Subscriptions"}}, "startPaidService": {"id": "reseller.subscriptions.startPaidService", "path": "customers/{customerId}/subscriptions/{subscriptionId}/startPaidService", "httpMethod": "POST", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "subscriptionId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Subscription"}}}}', true)); + + } +} + + + /** + * The "customers" collection of methods. + * Typical usage is: + *
+ * $resellerService = new Google_ResellerService(...);
+ * $customers = $resellerService->customers;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Reseller_Customer($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Reseller_Customer($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Update a customer resource if one it exists and is owned by the reseller. This method supports
+ * patch semantics. (customers.patch)
+ *
+ * @param string $customerId Id of the Customer
+ * @param Google_Customer $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Reseller_Customer($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Reseller_Customer($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "subscriptions" collection of methods.
+ * Typical usage is:
+ *
+ * $resellerService = new Google_ResellerService(...);
+ * $subscriptions = $resellerService->subscriptions;
+ *
+ */
+ 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);
+ $data = $this->__call('changePlan', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Reseller_Subscription($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Changes the renewal settings of a subscription (subscriptions.changeRenewalSettings)
+ *
+ * @param string $customerId Id of the Customer
+ * @param string $subscriptionId Id of the subscription, which is unique for a customer
+ * @param Google_RenewalSettings $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('changeRenewalSettings', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Reseller_Subscription($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Changes the seats configuration of a subscription (subscriptions.changeSeats)
+ *
+ * @param string $customerId Id of the Customer
+ * @param string $subscriptionId Id of the subscription, which is unique for a customer
+ * @param Google_Seats $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('changeSeats', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Reseller_Subscription($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Cancels/Downgrades a subscription. (subscriptions.delete)
+ *
+ * @param string $customerId Id of the Customer
+ * @param string $subscriptionId Id of the subscription, which is unique for a customer
+ * @param string $deletionType Whether the subscription is to be fully cancelled or downgraded
+ * @param array $optParams Optional parameters.
+ */
+ public function delete($customerId, $subscriptionId, $deletionType, $optParams = array()) {
+ $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId, 'deletionType' => $deletionType);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Reseller_Subscription($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Reseller_Subscription($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Lists subscriptions of a reseller, optionally filtered by a customer name prefix.
+ * (subscriptions.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string customerNamePrefix Prefix of the customer's domain name by which the subscriptions should be filtered. Optional
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string pageToken Token to specify next page in the list
+ * @return Google_Service_Reseller_Subscriptions
+ */
+ public function listSubscriptions($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Reseller_Subscriptions($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Starts paid service of a trial subscription (subscriptions.startPaidService)
+ *
+ * @param string $customerId Id of the Customer
+ * @param string $subscriptionId Id of the subscription, which is unique for a customer
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Reseller_Subscription
+ */
+ public function startPaidService($customerId, $subscriptionId, $optParams = array()) {
+ $params = array('customerId' => $customerId, 'subscriptionId' => $subscriptionId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('startPaidService', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Reseller_Subscription($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+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;
+ }
+ public function getAddressLine1() {
+ return $this->addressLine1;
+ }
+ public function setAddressLine2($addressLine2) {
+ $this->addressLine2 = $addressLine2;
+ }
+ public function getAddressLine2() {
+ return $this->addressLine2;
+ }
+ public function setAddressLine3($addressLine3) {
+ $this->addressLine3 = $addressLine3;
+ }
+ public function getAddressLine3() {
+ return $this->addressLine3;
+ }
+ public function setContactName($contactName) {
+ $this->contactName = $contactName;
+ }
+ public function getContactName() {
+ return $this->contactName;
+ }
+ public function setCountryCode($countryCode) {
+ $this->countryCode = $countryCode;
+ }
+ public function getCountryCode() {
+ return $this->countryCode;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setLocality($locality) {
+ $this->locality = $locality;
+ }
+ public function getLocality() {
+ return $this->locality;
+ }
+ public function setOrganizationName($organizationName) {
+ $this->organizationName = $organizationName;
+ }
+ public function getOrganizationName() {
+ return $this->organizationName;
+ }
+ public function setPostalCode($postalCode) {
+ $this->postalCode = $postalCode;
+ }
+ public function getPostalCode() {
+ return $this->postalCode;
+ }
+ public function setRegion($region) {
+ $this->region = $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 = '';
+ public $seats;
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setPlanName($planName) {
+ $this->planName = $planName;
+ }
+ public function getPlanName() {
+ return $this->planName;
+ }
+ public function setPurchaseOrderId($purchaseOrderId) {
+ $this->purchaseOrderId = $purchaseOrderId;
+ }
+ public function getPurchaseOrderId() {
+ return $this->purchaseOrderId;
+ }
+ public function setSeats(Google_Service_Reseller_Seats$seats) {
+ $this->seats = $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 $postalAddress;
+ public function setAlternateEmail($alternateEmail) {
+ $this->alternateEmail = $alternateEmail;
+ }
+ public function getAlternateEmail() {
+ return $this->alternateEmail;
+ }
+ public function setCustomerDomain($customerDomain) {
+ $this->customerDomain = $customerDomain;
+ }
+ public function getCustomerDomain() {
+ return $this->customerDomain;
+ }
+ 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;
+ }
+ public function setPhoneNumber($phoneNumber) {
+ $this->phoneNumber = $phoneNumber;
+ }
+ public function getPhoneNumber() {
+ return $this->phoneNumber;
+ }
+ public function setPostalAddress(Google_Service_Reseller_Address$postalAddress) {
+ $this->postalAddress = $postalAddress;
+ }
+ public function getPostalAddress() {
+ return $this->postalAddress;
+ }
+}
+
+class Google_Service_Reseller_RenewalSettings
+ extends Google_Model {
+ public $kind;
+ public $renewalType;
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setRenewalType($renewalType) {
+ $this->renewalType = $renewalType;
+ }
+ public function getRenewalType() {
+ return $this->renewalType;
+ }
+}
+
+class Google_Service_Reseller_Seats
+ extends Google_Model {
+ public $kind;
+ public $maximumNumberOfSeats;
+ public $numberOfSeats;
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setMaximumNumberOfSeats($maximumNumberOfSeats) {
+ $this->maximumNumberOfSeats = $maximumNumberOfSeats;
+ }
+ public function getMaximumNumberOfSeats() {
+ return $this->maximumNumberOfSeats;
+ }
+ public function setNumberOfSeats($numberOfSeats) {
+ $this->numberOfSeats = $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 $plan;
+ public $purchaseOrderId;
+ protected $__renewalSettingsType = 'Google_Service_Reseller_RenewalSettings';
+ protected $__renewalSettingsDataType = '';
+ public $renewalSettings;
+ protected $__seatsType = 'Google_Service_Reseller_Seats';
+ protected $__seatsDataType = '';
+ public $seats;
+ public $skuId;
+ public $subscriptionId;
+ protected $__trialSettingsType = 'Google_Service_Reseller_SubscriptionTrialSettings';
+ protected $__trialSettingsDataType = '';
+ public $trialSettings;
+ public function setCreationTime($creationTime) {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime() {
+ return $this->creationTime;
+ }
+ 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;
+ }
+ public function setPlan(Google_Service_Reseller_SubscriptionPlan$plan) {
+ $this->plan = $plan;
+ }
+ public function getPlan() {
+ return $this->plan;
+ }
+ public function setPurchaseOrderId($purchaseOrderId) {
+ $this->purchaseOrderId = $purchaseOrderId;
+ }
+ public function getPurchaseOrderId() {
+ return $this->purchaseOrderId;
+ }
+ public function setRenewalSettings(Google_Service_Reseller_RenewalSettings$renewalSettings) {
+ $this->renewalSettings = $renewalSettings;
+ }
+ public function getRenewalSettings() {
+ return $this->renewalSettings;
+ }
+ public function setSeats(Google_Service_Reseller_Seats$seats) {
+ $this->seats = $seats;
+ }
+ public function getSeats() {
+ return $this->seats;
+ }
+ public function setSkuId($skuId) {
+ $this->skuId = $skuId;
+ }
+ public function getSkuId() {
+ return $this->skuId;
+ }
+ public function setSubscriptionId($subscriptionId) {
+ $this->subscriptionId = $subscriptionId;
+ }
+ public function getSubscriptionId() {
+ return $this->subscriptionId;
+ }
+ public function setTrialSettings(Google_Service_Reseller_SubscriptionTrialSettings$trialSettings) {
+ $this->trialSettings = $trialSettings;
+ }
+ public function getTrialSettings() {
+ return $this->trialSettings;
+ }
+}
+
+class Google_Service_Reseller_SubscriptionPlan
+ extends Google_Model {
+ protected $__commitmentIntervalType = 'Google_Service_Reseller_SubscriptionPlanCommitmentInterval';
+ protected $__commitmentIntervalDataType = '';
+ public $commitmentInterval;
+ public $isCommitmentPlan;
+ public $planName;
+ public function setCommitmentInterval(Google_Service_Reseller_SubscriptionPlanCommitmentInterval$commitmentInterval) {
+ $this->commitmentInterval = $commitmentInterval;
+ }
+ public function getCommitmentInterval() {
+ return $this->commitmentInterval;
+ }
+ public function setIsCommitmentPlan($isCommitmentPlan) {
+ $this->isCommitmentPlan = $isCommitmentPlan;
+ }
+ public function getIsCommitmentPlan() {
+ return $this->isCommitmentPlan;
+ }
+ public function setPlanName($planName) {
+ $this->planName = $planName;
+ }
+ public function getPlanName() {
+ return $this->planName;
+ }
+}
+
+class Google_Service_Reseller_SubscriptionPlanCommitmentInterval
+ extends Google_Model {
+ public $endTime;
+ public $startTime;
+ public function setEndTime($endTime) {
+ $this->endTime = $endTime;
+ }
+ public function getEndTime() {
+ return $this->endTime;
+ }
+ public function setStartTime($startTime) {
+ $this->startTime = $startTime;
+ }
+ public function getStartTime() {
+ return $this->startTime;
+ }
+}
+
+class Google_Service_Reseller_SubscriptionTrialSettings
+ extends Google_Model {
+ public $isInTrial;
+ public $trialEndTime;
+ public function setIsInTrial($isInTrial) {
+ $this->isInTrial = $isInTrial;
+ }
+ public function getIsInTrial() {
+ return $this->isInTrial;
+ }
+ public function setTrialEndTime($trialEndTime) {
+ $this->trialEndTime = $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';
+ public $subscriptions;
+ 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 setSubscriptions($subscriptions) {
+ $this->subscriptions = $subscriptions;
+ }
+ public function getSubscriptions() {
+ return $this->subscriptions;
+ }
+}
diff --git a/src/Google/Service/Shopping.php b/src/Google/Service/Shopping.php
new file mode 100644
index 0000000..72d1d3d
--- /dev/null
+++ b/src/Google/Service/Shopping.php
@@ -0,0 +1,1412 @@
+
+ * Lets you search over product data.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Shopping extends Google_Service { + public $products; + /** + * Constructs the internal representation of the Shopping service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'shopping/search/v1/'; + $this->version = 'v1'; + $this->serviceName = 'shopping'; + + $client->addService($this->serviceName, $this->version); + $this->products = new Google_Service_Shopping_Products_Resource($this, $this->serviceName, 'products', json_decode('{"methods": {"get": {"id": "shopping.products.get", "path": "{source}/products/{accountId}/{productIdType}/{productId}", "httpMethod": "GET", "parameters": {"accountId": {"type": "integer", "required": true, "format": "uint32", "location": "path"}, "attributeFilter": {"type": "string", "location": "query"}, "categories.enabled": {"type": "boolean", "location": "query"}, "categories.include": {"type": "string", "location": "query"}, "categories.useGcsConfig": {"type": "boolean", "location": "query"}, "location": {"type": "string", "location": "query"}, "plusOne.enabled": {"type": "boolean", "location": "query"}, "plusOne.styles": {"type": "string", "location": "query"}, "plusOne.useGcsConfig": {"type": "boolean", "location": "query"}, "productId": {"type": "string", "required": true, "location": "path"}, "productIdType": {"type": "string", "required": true, "location": "path"}, "recommendations.enabled": {"type": "boolean", "location": "query"}, "recommendations.include": {"type": "string", "location": "query"}, "recommendations.useGcsConfig": {"type": "boolean", "location": "query"}, "source": {"type": "string", "required": true, "location": "path"}, "taxonomy": {"type": "string", "location": "query"}, "thumbnails": {"type": "string", "location": "query"}}, "response": {"$ref": "Product"}, "scopes": ["https://www.googleapis.com/auth/shoppingapi"]}, "list": {"id": "shopping.products.list", "path": "{source}/products", "httpMethod": "GET", "parameters": {"attributeFilter": {"type": "string", "location": "query"}, "availability": {"type": "string", "location": "query"}, "boostBy": {"type": "string", "location": "query"}, "categories.enabled": {"type": "boolean", "location": "query"}, "categories.include": {"type": "string", "location": "query"}, "categories.useGcsConfig": {"type": "boolean", "location": "query"}, "categoryRecommendations.category": {"type": "string", "location": "query"}, "categoryRecommendations.enabled": {"type": "boolean", "location": "query"}, "categoryRecommendations.include": {"type": "string", "location": "query"}, "categoryRecommendations.useGcsConfig": {"type": "boolean", "location": "query"}, "channels": {"type": "string", "location": "query"}, "clickTracking": {"type": "boolean", "location": "query"}, "country": {"type": "string", "location": "query"}, "crowdBy": {"type": "string", "location": "query"}, "currency": {"type": "string", "location": "query"}, "extras.enabled": {"type": "boolean", "location": "query"}, "extras.info": {"type": "string", "location": "query"}, "facets.discover": {"type": "string", "location": "query"}, "facets.enabled": {"type": "boolean", "location": "query"}, "facets.include": {"type": "string", "location": "query"}, "facets.includeEmptyBuckets": {"type": "boolean", "location": "query"}, "facets.useGcsConfig": {"type": "boolean", "location": "query"}, "language": {"type": "string", "location": "query"}, "location": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "location": "query"}, "maxVariants": {"type": "integer", "format": "int32", "location": "query"}, "plusOne.enabled": {"type": "boolean", "location": "query"}, "plusOne.styles": {"type": "string", "location": "query"}, "plusOne.useGcsConfig": {"type": "boolean", "location": "query"}, "promotions.enabled": {"type": "boolean", "location": "query"}, "promotions.useGcsConfig": {"type": "boolean", "location": "query"}, "q": {"type": "string", "location": "query"}, "rankBy": {"type": "string", "location": "query"}, "redirects.enabled": {"type": "boolean", "location": "query"}, "redirects.useGcsConfig": {"type": "boolean", "location": "query"}, "relatedQueries.enabled": {"type": "boolean", "location": "query"}, "relatedQueries.useGcsConfig": {"type": "boolean", "location": "query"}, "restrictBy": {"type": "string", "location": "query"}, "safe": {"type": "boolean", "location": "query"}, "source": {"type": "string", "required": true, "location": "path"}, "spelling.enabled": {"type": "boolean", "location": "query"}, "spelling.useGcsConfig": {"type": "boolean", "location": "query"}, "startIndex": {"type": "integer", "format": "uint32", "location": "query"}, "taxonomy": {"type": "string", "location": "query"}, "thumbnails": {"type": "string", "location": "query"}, "useCase": {"type": "string", "location": "query"}}, "response": {"$ref": "Products"}, "scopes": ["https://www.googleapis.com/auth/shoppingapi"]}}}', true)); + + } +} + + + /** + * The "products" collection of methods. + * Typical usage is: + *
+ * $shoppingService = new Google_ShoppingService(...);
+ * $products = $shoppingService->products;
+ *
+ */
+ class Google_Service_Shopping_Products_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Returns a single product (products.get)
+ *
+ * @param string $source Query source
+ * @param string $accountId Merchant center account id
+ * @param string $productIdType Type of productId
+ * @param string $productId Id of product
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string attributeFilter Comma separated list of attributes to return
+ * @opt_param bool categories.enabled Whether to return category information
+ * @opt_param string categories.include Category specification
+ * @opt_param bool categories.useGcsConfig This parameter is currently ignored
+ * @opt_param string location Location used to determine tax and shipping
+ * @opt_param bool plusOne.enabled Whether to return +1 button code
+ * @opt_param string plusOne.styles +1 button rendering styles
+ * @opt_param bool plusOne.useGcsConfig Whether to use +1 button styles configured in the GCS account
+ * @opt_param bool recommendations.enabled Whether to return recommendation information
+ * @opt_param string recommendations.include Recommendation specification
+ * @opt_param bool recommendations.useGcsConfig This parameter is currently ignored
+ * @opt_param string taxonomy Merchant taxonomy
+ * @opt_param string thumbnails Thumbnail specification
+ * @return Google_Service_Shopping_Product
+ */
+ public function get($source, $accountId, $productIdType, $productId, $optParams = array()) {
+ $params = array('source' => $source, 'accountId' => $accountId, 'productIdType' => $productIdType, 'productId' => $productId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Shopping_Product($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Returns a list of products and content modules (products.list)
+ *
+ * @param string $source Query source
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string attributeFilter Comma separated list of attributes to return
+ * @opt_param string availability Comma separated list of availabilities (outOfStock, limited, inStock, backOrder, preOrder, onDisplayToOrder) to return
+ * @opt_param string boostBy Boosting specification
+ * @opt_param bool categories.enabled Whether to return category information
+ * @opt_param string categories.include Category specification
+ * @opt_param bool categories.useGcsConfig This parameter is currently ignored
+ * @opt_param string categoryRecommendations.category Category for which to retrieve recommendations
+ * @opt_param bool categoryRecommendations.enabled Whether to return category recommendation information
+ * @opt_param string categoryRecommendations.include Category recommendation specification
+ * @opt_param bool categoryRecommendations.useGcsConfig This parameter is currently ignored
+ * @opt_param string channels Channels specification
+ * @opt_param bool clickTracking Whether to add a click tracking parameter to offer URLs
+ * @opt_param string country Country restriction (ISO 3166)
+ * @opt_param string crowdBy Crowding specification
+ * @opt_param string currency Currency restriction (ISO 4217)
+ * @opt_param bool extras.enabled Whether to return extra information.
+ * @opt_param string extras.info What extra information to return.
+ * @opt_param string facets.discover Facets to discover
+ * @opt_param bool facets.enabled Whether to return facet information
+ * @opt_param string facets.include Facets to include (applies when useGcsConfig == false)
+ * @opt_param bool facets.includeEmptyBuckets Return empty facet buckets.
+ * @opt_param bool facets.useGcsConfig Whether to return facet information as configured in the GCS account
+ * @opt_param string language Language restriction (BCP 47)
+ * @opt_param string location Location used to determine tax and shipping
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param int maxVariants Maximum number of variant results to return per result
+ * @opt_param bool plusOne.enabled Whether to return +1 button code
+ * @opt_param string plusOne.styles +1 button rendering styles
+ * @opt_param bool plusOne.useGcsConfig Whether to use +1 button styles configured in the GCS account
+ * @opt_param bool promotions.enabled Whether to return promotion information
+ * @opt_param bool promotions.useGcsConfig Whether to return promotion information as configured in the GCS account
+ * @opt_param string q Search query
+ * @opt_param string rankBy Ranking specification
+ * @opt_param bool redirects.enabled Whether to return redirect information
+ * @opt_param bool redirects.useGcsConfig Whether to return redirect information as configured in the GCS account
+ * @opt_param bool relatedQueries.enabled Whether to return related queries
+ * @opt_param bool relatedQueries.useGcsConfig This parameter is currently ignored
+ * @opt_param string restrictBy Restriction specification
+ * @opt_param bool safe Whether safe search is enabled. Default: true
+ * @opt_param bool spelling.enabled Whether to return spelling suggestions
+ * @opt_param bool spelling.useGcsConfig This parameter is currently ignored
+ * @opt_param string startIndex Index (1-based) of first product to return
+ * @opt_param string taxonomy Taxonomy name
+ * @opt_param string thumbnails Image thumbnails specification
+ * @opt_param string useCase One of CommerceSearchUseCase, ShoppingApiUseCase
+ * @return Google_Service_Shopping_Products
+ */
+ public function listProducts($source, $optParams = array()) {
+ $params = array('source' => $source);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Shopping_Products($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Shopping_Product
+ extends Google_Collection {
+ protected $__categoriesType = 'Google_Service_Shopping_ShoppingModelCategoryJsonV1';
+ protected $__categoriesDataType = 'array';
+ public $categories;
+ protected $__debugType = 'Google_Service_Shopping_ShoppingModelDebugJsonV1';
+ protected $__debugDataType = '';
+ public $debug;
+ public $id;
+ public $kind;
+ protected $__productType = 'Google_Service_Shopping_ShoppingModelProductJsonV1';
+ protected $__productDataType = '';
+ public $product;
+ protected $__recommendationsType = 'Google_Service_Shopping_ShoppingModelRecommendationsJsonV1';
+ protected $__recommendationsDataType = 'array';
+ public $recommendations;
+ public $requestId;
+ public $selfLink;
+ public function setCategories($categories) {
+ $this->categories = $categories;
+ }
+ public function getCategories() {
+ return $this->categories;
+ }
+ public function setDebug(Google_Service_Shopping_ShoppingModelDebugJsonV1$debug) {
+ $this->debug = $debug;
+ }
+ public function getDebug() {
+ return $this->debug;
+ }
+ 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 setProduct(Google_Service_Shopping_ShoppingModelProductJsonV1$product) {
+ $this->product = $product;
+ }
+ public function getProduct() {
+ return $this->product;
+ }
+ public function setRecommendations($recommendations) {
+ $this->recommendations = $recommendations;
+ }
+ public function getRecommendations() {
+ return $this->recommendations;
+ }
+ public function setRequestId($requestId) {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId() {
+ return $this->requestId;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_Shopping_Products
+ extends Google_Collection {
+ protected $__categoriesType = 'Google_Service_Shopping_ShoppingModelCategoryJsonV1';
+ protected $__categoriesDataType = 'array';
+ public $categories;
+ protected $__categoryRecommendationsType = 'Google_Service_Shopping_ShoppingModelRecommendationsJsonV1';
+ protected $__categoryRecommendationsDataType = 'array';
+ public $categoryRecommendations;
+ public $currentItemCount;
+ protected $__debugType = 'Google_Service_Shopping_ShoppingModelDebugJsonV1';
+ protected $__debugDataType = '';
+ public $debug;
+ public $etag;
+ protected $__extrasType = 'Google_Service_Shopping_ShoppingModelExtrasJsonV1';
+ protected $__extrasDataType = '';
+ public $extras;
+ protected $__facetsType = 'Google_Service_Shopping_ProductsFacets';
+ protected $__facetsDataType = 'array';
+ public $facets;
+ public $id;
+ protected $__itemsType = 'Google_Service_Shopping_Product';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $itemsPerPage;
+ public $kind;
+ public $nextLink;
+ public $previousLink;
+ protected $__promotionsType = 'Google_Service_Shopping_ProductsPromotions';
+ protected $__promotionsDataType = 'array';
+ public $promotions;
+ public $redirects;
+ public $relatedQueries;
+ public $requestId;
+ public $selfLink;
+ protected $__spellingType = 'Google_Service_Shopping_ProductsSpelling';
+ protected $__spellingDataType = '';
+ public $spelling;
+ public $startIndex;
+ protected $__storesType = 'Google_Service_Shopping_ProductsStores';
+ protected $__storesDataType = 'array';
+ public $stores;
+ public $totalItems;
+ public function setCategories($categories) {
+ $this->categories = $categories;
+ }
+ public function getCategories() {
+ return $this->categories;
+ }
+ public function setCategoryRecommendations($categoryRecommendations) {
+ $this->categoryRecommendations = $categoryRecommendations;
+ }
+ public function getCategoryRecommendations() {
+ return $this->categoryRecommendations;
+ }
+ public function setCurrentItemCount($currentItemCount) {
+ $this->currentItemCount = $currentItemCount;
+ }
+ public function getCurrentItemCount() {
+ return $this->currentItemCount;
+ }
+ public function setDebug(Google_Service_Shopping_ShoppingModelDebugJsonV1$debug) {
+ $this->debug = $debug;
+ }
+ public function getDebug() {
+ return $this->debug;
+ }
+ public function setEtag($etag) {
+ $this->etag = $etag;
+ }
+ public function getEtag() {
+ return $this->etag;
+ }
+ public function setExtras(Google_Service_Shopping_ShoppingModelExtrasJsonV1$extras) {
+ $this->extras = $extras;
+ }
+ public function getExtras() {
+ return $this->extras;
+ }
+ public function setFacets($facets) {
+ $this->facets = $facets;
+ }
+ public function getFacets() {
+ return $this->facets;
+ }
+ 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 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 setPromotions($promotions) {
+ $this->promotions = $promotions;
+ }
+ public function getPromotions() {
+ return $this->promotions;
+ }
+ public function setRedirects($redirects) {
+ $this->redirects = $redirects;
+ }
+ public function getRedirects() {
+ return $this->redirects;
+ }
+ public function setRelatedQueries($relatedQueries) {
+ $this->relatedQueries = $relatedQueries;
+ }
+ public function getRelatedQueries() {
+ return $this->relatedQueries;
+ }
+ public function setRequestId($requestId) {
+ $this->requestId = $requestId;
+ }
+ public function getRequestId() {
+ return $this->requestId;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+ public function setSpelling(Google_Service_Shopping_ProductsSpelling$spelling) {
+ $this->spelling = $spelling;
+ }
+ public function getSpelling() {
+ return $this->spelling;
+ }
+ public function setStartIndex($startIndex) {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex() {
+ return $this->startIndex;
+ }
+ public function setStores($stores) {
+ $this->stores = $stores;
+ }
+ public function getStores() {
+ return $this->stores;
+ }
+ public function setTotalItems($totalItems) {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems() {
+ return $this->totalItems;
+ }
+}
+
+class Google_Service_Shopping_ProductsFacets
+ extends Google_Collection {
+ protected $__bucketsType = 'Google_Service_Shopping_ProductsFacetsBuckets';
+ protected $__bucketsDataType = 'array';
+ public $buckets;
+ public $count;
+ public $displayName;
+ public $name;
+ public $property;
+ public $type;
+ public $unit;
+ public function setBuckets($buckets) {
+ $this->buckets = $buckets;
+ }
+ public function getBuckets() {
+ return $this->buckets;
+ }
+ public function setCount($count) {
+ $this->count = $count;
+ }
+ public function getCount() {
+ return $this->count;
+ }
+ public function setDisplayName($displayName) {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName() {
+ return $this->displayName;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setProperty($property) {
+ $this->property = $property;
+ }
+ public function getProperty() {
+ return $this->property;
+ }
+ 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;
+ }
+}
+
+class Google_Service_Shopping_ProductsFacetsBuckets
+ extends Google_Model {
+ public $count;
+ public $max;
+ public $maxExclusive;
+ public $min;
+ public $minExclusive;
+ public $value;
+ public function setCount($count) {
+ $this->count = $count;
+ }
+ public function getCount() {
+ return $this->count;
+ }
+ public function setMax($max) {
+ $this->max = $max;
+ }
+ public function getMax() {
+ return $this->max;
+ }
+ public function setMaxExclusive($maxExclusive) {
+ $this->maxExclusive = $maxExclusive;
+ }
+ public function getMaxExclusive() {
+ return $this->maxExclusive;
+ }
+ public function setMin($min) {
+ $this->min = $min;
+ }
+ public function getMin() {
+ return $this->min;
+ }
+ public function setMinExclusive($minExclusive) {
+ $this->minExclusive = $minExclusive;
+ }
+ public function getMinExclusive() {
+ return $this->minExclusive;
+ }
+ public function setValue($value) {
+ $this->value = $value;
+ }
+ public function getValue() {
+ return $this->value;
+ }
+}
+
+class Google_Service_Shopping_ProductsPromotions
+ extends Google_Collection {
+ protected $__customFieldsType = 'Google_Service_Shopping_ProductsPromotionsCustomFields';
+ protected $__customFieldsDataType = 'array';
+ public $customFields;
+ public $customHtml;
+ public $description;
+ public $destLink;
+ public $imageLink;
+ public $name;
+ protected $__productType = 'Google_Service_Shopping_ShoppingModelProductJsonV1';
+ protected $__productDataType = '';
+ public $product;
+ public $type;
+ public function setCustomFields($customFields) {
+ $this->customFields = $customFields;
+ }
+ public function getCustomFields() {
+ return $this->customFields;
+ }
+ public function setCustomHtml($customHtml) {
+ $this->customHtml = $customHtml;
+ }
+ public function getCustomHtml() {
+ return $this->customHtml;
+ }
+ public function setDescription($description) {
+ $this->description = $description;
+ }
+ public function getDescription() {
+ return $this->description;
+ }
+ public function setDestLink($destLink) {
+ $this->destLink = $destLink;
+ }
+ public function getDestLink() {
+ return $this->destLink;
+ }
+ public function setImageLink($imageLink) {
+ $this->imageLink = $imageLink;
+ }
+ public function getImageLink() {
+ return $this->imageLink;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setProduct(Google_Service_Shopping_ShoppingModelProductJsonV1$product) {
+ $this->product = $product;
+ }
+ public function getProduct() {
+ return $this->product;
+ }
+ public function setType($type) {
+ $this->type = $type;
+ }
+ public function getType() {
+ return $this->type;
+ }
+}
+
+class Google_Service_Shopping_ProductsPromotionsCustomFields
+ extends Google_Model {
+ public $name;
+ public $value;
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setValue($value) {
+ $this->value = $value;
+ }
+ public function getValue() {
+ return $this->value;
+ }
+}
+
+class Google_Service_Shopping_ProductsSpelling
+ extends Google_Model {
+ public $suggestion;
+ public function setSuggestion($suggestion) {
+ $this->suggestion = $suggestion;
+ }
+ public function getSuggestion() {
+ return $this->suggestion;
+ }
+}
+
+class Google_Service_Shopping_ProductsStores
+ extends Google_Model {
+ public $address;
+ public $location;
+ public $name;
+ public $storeCode;
+ public $storeId;
+ public $storeName;
+ public $telephone;
+ public function setAddress($address) {
+ $this->address = $address;
+ }
+ public function getAddress() {
+ return $this->address;
+ }
+ public function setLocation($location) {
+ $this->location = $location;
+ }
+ public function getLocation() {
+ return $this->location;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setStoreCode($storeCode) {
+ $this->storeCode = $storeCode;
+ }
+ public function getStoreCode() {
+ return $this->storeCode;
+ }
+ public function setStoreId($storeId) {
+ $this->storeId = $storeId;
+ }
+ public function getStoreId() {
+ return $this->storeId;
+ }
+ public function setStoreName($storeName) {
+ $this->storeName = $storeName;
+ }
+ public function getStoreName() {
+ return $this->storeName;
+ }
+ public function setTelephone($telephone) {
+ $this->telephone = $telephone;
+ }
+ public function getTelephone() {
+ return $this->telephone;
+ }
+}
+
+class Google_Service_Shopping_ShoppingModelCategoryJsonV1
+ extends Google_Collection {
+ public $id;
+ public $parents;
+ public $shortName;
+ public $url;
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setParents($parents) {
+ $this->parents = $parents;
+ }
+ public function getParents() {
+ return $this->parents;
+ }
+ public function setShortName($shortName) {
+ $this->shortName = $shortName;
+ }
+ public function getShortName() {
+ return $this->shortName;
+ }
+ public function setUrl($url) {
+ $this->url = $url;
+ }
+ public function getUrl() {
+ return $this->url;
+ }
+}
+
+class Google_Service_Shopping_ShoppingModelDebugJsonV1
+ extends Google_Collection {
+ protected $__backendTimesType = 'Google_Service_Shopping_ShoppingModelDebugJsonV1BackendTimes';
+ protected $__backendTimesDataType = 'array';
+ public $backendTimes;
+ public $elapsedMillis;
+ public $facetsRequest;
+ public $facetsResponse;
+ public $rdcResponse;
+ public $recommendedItemsRequest;
+ public $recommendedItemsResponse;
+ public $searchRequest;
+ public $searchResponse;
+ public function setBackendTimes($backendTimes) {
+ $this->backendTimes = $backendTimes;
+ }
+ public function getBackendTimes() {
+ return $this->backendTimes;
+ }
+ public function setElapsedMillis($elapsedMillis) {
+ $this->elapsedMillis = $elapsedMillis;
+ }
+ public function getElapsedMillis() {
+ return $this->elapsedMillis;
+ }
+ public function setFacetsRequest($facetsRequest) {
+ $this->facetsRequest = $facetsRequest;
+ }
+ public function getFacetsRequest() {
+ return $this->facetsRequest;
+ }
+ public function setFacetsResponse($facetsResponse) {
+ $this->facetsResponse = $facetsResponse;
+ }
+ public function getFacetsResponse() {
+ return $this->facetsResponse;
+ }
+ public function setRdcResponse($rdcResponse) {
+ $this->rdcResponse = $rdcResponse;
+ }
+ public function getRdcResponse() {
+ return $this->rdcResponse;
+ }
+ public function setRecommendedItemsRequest($recommendedItemsRequest) {
+ $this->recommendedItemsRequest = $recommendedItemsRequest;
+ }
+ public function getRecommendedItemsRequest() {
+ return $this->recommendedItemsRequest;
+ }
+ public function setRecommendedItemsResponse($recommendedItemsResponse) {
+ $this->recommendedItemsResponse = $recommendedItemsResponse;
+ }
+ public function getRecommendedItemsResponse() {
+ return $this->recommendedItemsResponse;
+ }
+ public function setSearchRequest($searchRequest) {
+ $this->searchRequest = $searchRequest;
+ }
+ public function getSearchRequest() {
+ return $this->searchRequest;
+ }
+ public function setSearchResponse($searchResponse) {
+ $this->searchResponse = $searchResponse;
+ }
+ public function getSearchResponse() {
+ return $this->searchResponse;
+ }
+}
+
+class Google_Service_Shopping_ShoppingModelDebugJsonV1BackendTimes
+ extends Google_Model {
+ public $elapsedMillis;
+ public $hostName;
+ public $name;
+ public $serverMillis;
+ public function setElapsedMillis($elapsedMillis) {
+ $this->elapsedMillis = $elapsedMillis;
+ }
+ public function getElapsedMillis() {
+ return $this->elapsedMillis;
+ }
+ public function setHostName($hostName) {
+ $this->hostName = $hostName;
+ }
+ public function getHostName() {
+ return $this->hostName;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setServerMillis($serverMillis) {
+ $this->serverMillis = $serverMillis;
+ }
+ public function getServerMillis() {
+ return $this->serverMillis;
+ }
+}
+
+class Google_Service_Shopping_ShoppingModelExtrasJsonV1
+ extends Google_Collection {
+ protected $__facetRulesType = 'Google_Service_Shopping_ShoppingModelExtrasJsonV1FacetRules';
+ protected $__facetRulesDataType = 'array';
+ public $facetRules;
+ protected $__rankingRulesType = 'Google_Service_Shopping_ShoppingModelExtrasJsonV1RankingRules';
+ protected $__rankingRulesDataType = 'array';
+ public $rankingRules;
+ public function setFacetRules($facetRules) {
+ $this->facetRules = $facetRules;
+ }
+ public function getFacetRules() {
+ return $this->facetRules;
+ }
+ public function setRankingRules($rankingRules) {
+ $this->rankingRules = $rankingRules;
+ }
+ public function getRankingRules() {
+ return $this->rankingRules;
+ }
+}
+
+class Google_Service_Shopping_ShoppingModelExtrasJsonV1FacetRules
+ extends Google_Model {
+ public $name;
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+}
+
+class Google_Service_Shopping_ShoppingModelExtrasJsonV1RankingRules
+ extends Google_Model {
+ public $name;
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+}
+
+class Google_Service_Shopping_ShoppingModelProductJsonV1
+ extends Google_Collection {
+ protected $__attributesType = 'Google_Service_Shopping_ShoppingModelProductJsonV1Attributes';
+ protected $__attributesDataType = 'array';
+ public $attributes;
+ protected $__authorType = 'Google_Service_Shopping_ShoppingModelProductJsonV1Author';
+ protected $__authorDataType = '';
+ public $author;
+ public $brand;
+ public $categories;
+ public $condition;
+ public $country;
+ public $creationTime;
+ public $description;
+ public $googleId;
+ public $gtin;
+ public $gtins;
+ protected $__imagesType = 'Google_Service_Shopping_ShoppingModelProductJsonV1Images';
+ protected $__imagesDataType = 'array';
+ public $images;
+ public $internal1;
+ public $internal10;
+ public $internal12;
+ public $internal13;
+ public $internal14;
+ public $internal15;
+ protected $__internal16Type = 'Google_Service_Shopping_ShoppingModelProductJsonV1Internal16';
+ protected $__internal16DataType = '';
+ public $internal16;
+ public $internal3;
+ protected $__internal4Type = 'Google_Service_Shopping_ShoppingModelProductJsonV1Internal4';
+ protected $__internal4DataType = 'array';
+ public $internal4;
+ public $internal6;
+ public $internal7;
+ public $internal8;
+ protected $__inventoriesType = 'Google_Service_Shopping_ShoppingModelProductJsonV1Inventories';
+ protected $__inventoriesDataType = 'array';
+ public $inventories;
+ public $language;
+ public $link;
+ public $modificationTime;
+ public $mpns;
+ public $plusOne;
+ public $providedId;
+ public $queryMatched;
+ public $score;
+ public $title;
+ public $totalMatchingVariants;
+ protected $__variantsType = 'Google_Service_Shopping_ShoppingModelProductJsonV1Variants';
+ protected $__variantsDataType = 'array';
+ public $variants;
+ public function setAttributes($attributes) {
+ $this->attributes = $attributes;
+ }
+ public function getAttributes() {
+ return $this->attributes;
+ }
+ public function setAuthor(Google_Service_Shopping_ShoppingModelProductJsonV1Author$author) {
+ $this->author = $author;
+ }
+ public function getAuthor() {
+ return $this->author;
+ }
+ public function setBrand($brand) {
+ $this->brand = $brand;
+ }
+ public function getBrand() {
+ return $this->brand;
+ }
+ public function setCategories($categories) {
+ $this->categories = $categories;
+ }
+ public function getCategories() {
+ return $this->categories;
+ }
+ public function setCondition($condition) {
+ $this->condition = $condition;
+ }
+ public function getCondition() {
+ return $this->condition;
+ }
+ public function setCountry($country) {
+ $this->country = $country;
+ }
+ public function getCountry() {
+ return $this->country;
+ }
+ public function setCreationTime($creationTime) {
+ $this->creationTime = $creationTime;
+ }
+ public function getCreationTime() {
+ return $this->creationTime;
+ }
+ public function setDescription($description) {
+ $this->description = $description;
+ }
+ public function getDescription() {
+ return $this->description;
+ }
+ public function setGoogleId($googleId) {
+ $this->googleId = $googleId;
+ }
+ public function getGoogleId() {
+ return $this->googleId;
+ }
+ public function setGtin($gtin) {
+ $this->gtin = $gtin;
+ }
+ public function getGtin() {
+ return $this->gtin;
+ }
+ public function setGtins($gtins) {
+ $this->gtins = $gtins;
+ }
+ public function getGtins() {
+ return $this->gtins;
+ }
+ public function setImages($images) {
+ $this->images = $images;
+ }
+ public function getImages() {
+ return $this->images;
+ }
+ public function setInternal1($internal1) {
+ $this->internal1 = $internal1;
+ }
+ public function getInternal1() {
+ return $this->internal1;
+ }
+ public function setInternal10($internal10) {
+ $this->internal10 = $internal10;
+ }
+ public function getInternal10() {
+ return $this->internal10;
+ }
+ public function setInternal12($internal12) {
+ $this->internal12 = $internal12;
+ }
+ public function getInternal12() {
+ return $this->internal12;
+ }
+ public function setInternal13($internal13) {
+ $this->internal13 = $internal13;
+ }
+ public function getInternal13() {
+ return $this->internal13;
+ }
+ public function setInternal14($internal14) {
+ $this->internal14 = $internal14;
+ }
+ public function getInternal14() {
+ return $this->internal14;
+ }
+ public function setInternal15($internal15) {
+ $this->internal15 = $internal15;
+ }
+ public function getInternal15() {
+ return $this->internal15;
+ }
+ public function setInternal16(Google_Service_Shopping_ShoppingModelProductJsonV1Internal16$internal16) {
+ $this->internal16 = $internal16;
+ }
+ public function getInternal16() {
+ return $this->internal16;
+ }
+ public function setInternal3($internal3) {
+ $this->internal3 = $internal3;
+ }
+ public function getInternal3() {
+ return $this->internal3;
+ }
+ public function setInternal4($internal4) {
+ $this->internal4 = $internal4;
+ }
+ public function getInternal4() {
+ return $this->internal4;
+ }
+ public function setInternal6($internal6) {
+ $this->internal6 = $internal6;
+ }
+ public function getInternal6() {
+ return $this->internal6;
+ }
+ public function setInternal7($internal7) {
+ $this->internal7 = $internal7;
+ }
+ public function getInternal7() {
+ return $this->internal7;
+ }
+ public function setInternal8($internal8) {
+ $this->internal8 = $internal8;
+ }
+ public function getInternal8() {
+ return $this->internal8;
+ }
+ public function setInventories($inventories) {
+ $this->inventories = $inventories;
+ }
+ public function getInventories() {
+ return $this->inventories;
+ }
+ public function setLanguage($language) {
+ $this->language = $language;
+ }
+ public function getLanguage() {
+ return $this->language;
+ }
+ public function setLink($link) {
+ $this->link = $link;
+ }
+ public function getLink() {
+ return $this->link;
+ }
+ public function setModificationTime($modificationTime) {
+ $this->modificationTime = $modificationTime;
+ }
+ public function getModificationTime() {
+ return $this->modificationTime;
+ }
+ public function setMpns($mpns) {
+ $this->mpns = $mpns;
+ }
+ public function getMpns() {
+ return $this->mpns;
+ }
+ public function setPlusOne($plusOne) {
+ $this->plusOne = $plusOne;
+ }
+ public function getPlusOne() {
+ return $this->plusOne;
+ }
+ public function setProvidedId($providedId) {
+ $this->providedId = $providedId;
+ }
+ public function getProvidedId() {
+ return $this->providedId;
+ }
+ public function setQueryMatched($queryMatched) {
+ $this->queryMatched = $queryMatched;
+ }
+ public function getQueryMatched() {
+ return $this->queryMatched;
+ }
+ public function setScore($score) {
+ $this->score = $score;
+ }
+ public function getScore() {
+ return $this->score;
+ }
+ public function setTitle($title) {
+ $this->title = $title;
+ }
+ public function getTitle() {
+ return $this->title;
+ }
+ public function setTotalMatchingVariants($totalMatchingVariants) {
+ $this->totalMatchingVariants = $totalMatchingVariants;
+ }
+ public function getTotalMatchingVariants() {
+ return $this->totalMatchingVariants;
+ }
+ public function setVariants($variants) {
+ $this->variants = $variants;
+ }
+ public function getVariants() {
+ return $this->variants;
+ }
+}
+
+class Google_Service_Shopping_ShoppingModelProductJsonV1Attributes
+ extends Google_Model {
+ public $displayName;
+ public $name;
+ public $type;
+ public $unit;
+ public $value;
+ public function setDisplayName($displayName) {
+ $this->displayName = $displayName;
+ }
+ public function getDisplayName() {
+ return $this->displayName;
+ }
+ 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_Shopping_ShoppingModelProductJsonV1Author
+ extends Google_Model {
+ public $accountId;
+ public $name;
+ public function setAccountId($accountId) {
+ $this->accountId = $accountId;
+ }
+ public function getAccountId() {
+ return $this->accountId;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+}
+
+class Google_Service_Shopping_ShoppingModelProductJsonV1Images
+ extends Google_Collection {
+ public $link;
+ public $status;
+ protected $__thumbnailsType = 'Google_Service_Shopping_ShoppingModelProductJsonV1ImagesThumbnails';
+ protected $__thumbnailsDataType = 'array';
+ public $thumbnails;
+ public function setLink($link) {
+ $this->link = $link;
+ }
+ public function getLink() {
+ return $this->link;
+ }
+ public function setStatus($status) {
+ $this->status = $status;
+ }
+ public function getStatus() {
+ return $this->status;
+ }
+ public function setThumbnails($thumbnails) {
+ $this->thumbnails = $thumbnails;
+ }
+ public function getThumbnails() {
+ return $this->thumbnails;
+ }
+}
+
+class Google_Service_Shopping_ShoppingModelProductJsonV1ImagesThumbnails
+ extends Google_Model {
+ public $content;
+ public $height;
+ public $link;
+ public $width;
+ public function setContent($content) {
+ $this->content = $content;
+ }
+ public function getContent() {
+ return $this->content;
+ }
+ public function setHeight($height) {
+ $this->height = $height;
+ }
+ public function getHeight() {
+ return $this->height;
+ }
+ public function setLink($link) {
+ $this->link = $link;
+ }
+ public function getLink() {
+ return $this->link;
+ }
+ public function setWidth($width) {
+ $this->width = $width;
+ }
+ public function getWidth() {
+ return $this->width;
+ }
+}
+
+class Google_Service_Shopping_ShoppingModelProductJsonV1Internal16
+ extends Google_Model {
+ public $length;
+ public $number;
+ public $size;
+ public function setLength($length) {
+ $this->length = $length;
+ }
+ public function getLength() {
+ return $this->length;
+ }
+ public function setNumber($number) {
+ $this->number = $number;
+ }
+ public function getNumber() {
+ return $this->number;
+ }
+ public function setSize($size) {
+ $this->size = $size;
+ }
+ public function getSize() {
+ return $this->size;
+ }
+}
+
+class Google_Service_Shopping_ShoppingModelProductJsonV1Internal4
+ extends Google_Model {
+ public $confidence;
+ public $node;
+ public function setConfidence($confidence) {
+ $this->confidence = $confidence;
+ }
+ public function getConfidence() {
+ return $this->confidence;
+ }
+ public function setNode($node) {
+ $this->node = $node;
+ }
+ public function getNode() {
+ return $this->node;
+ }
+}
+
+class Google_Service_Shopping_ShoppingModelProductJsonV1Inventories
+ extends Google_Model {
+ public $availability;
+ public $channel;
+ public $currency;
+ public $distance;
+ public $distanceUnit;
+ public $installmentMonths;
+ public $installmentPrice;
+ public $originalPrice;
+ public $price;
+ public $saleEndDate;
+ public $salePrice;
+ public $saleStartDate;
+ public $shipping;
+ public $storeId;
+ public $tax;
+ public function setAvailability($availability) {
+ $this->availability = $availability;
+ }
+ public function getAvailability() {
+ return $this->availability;
+ }
+ public function setChannel($channel) {
+ $this->channel = $channel;
+ }
+ public function getChannel() {
+ return $this->channel;
+ }
+ public function setCurrency($currency) {
+ $this->currency = $currency;
+ }
+ public function getCurrency() {
+ return $this->currency;
+ }
+ public function setDistance($distance) {
+ $this->distance = $distance;
+ }
+ public function getDistance() {
+ return $this->distance;
+ }
+ public function setDistanceUnit($distanceUnit) {
+ $this->distanceUnit = $distanceUnit;
+ }
+ public function getDistanceUnit() {
+ return $this->distanceUnit;
+ }
+ public function setInstallmentMonths($installmentMonths) {
+ $this->installmentMonths = $installmentMonths;
+ }
+ public function getInstallmentMonths() {
+ return $this->installmentMonths;
+ }
+ public function setInstallmentPrice($installmentPrice) {
+ $this->installmentPrice = $installmentPrice;
+ }
+ public function getInstallmentPrice() {
+ return $this->installmentPrice;
+ }
+ public function setOriginalPrice($originalPrice) {
+ $this->originalPrice = $originalPrice;
+ }
+ public function getOriginalPrice() {
+ return $this->originalPrice;
+ }
+ public function setPrice($price) {
+ $this->price = $price;
+ }
+ public function getPrice() {
+ return $this->price;
+ }
+ public function setSaleEndDate($saleEndDate) {
+ $this->saleEndDate = $saleEndDate;
+ }
+ public function getSaleEndDate() {
+ return $this->saleEndDate;
+ }
+ public function setSalePrice($salePrice) {
+ $this->salePrice = $salePrice;
+ }
+ public function getSalePrice() {
+ return $this->salePrice;
+ }
+ public function setSaleStartDate($saleStartDate) {
+ $this->saleStartDate = $saleStartDate;
+ }
+ public function getSaleStartDate() {
+ return $this->saleStartDate;
+ }
+ public function setShipping($shipping) {
+ $this->shipping = $shipping;
+ }
+ public function getShipping() {
+ return $this->shipping;
+ }
+ public function setStoreId($storeId) {
+ $this->storeId = $storeId;
+ }
+ public function getStoreId() {
+ return $this->storeId;
+ }
+ public function setTax($tax) {
+ $this->tax = $tax;
+ }
+ public function getTax() {
+ return $this->tax;
+ }
+}
+
+class Google_Service_Shopping_ShoppingModelProductJsonV1Variants
+ extends Google_Model {
+ protected $__variantType = 'Google_Service_Shopping_ShoppingModelProductJsonV1';
+ protected $__variantDataType = '';
+ public $variant;
+ public function setVariant(Google_Service_Shopping_ShoppingModelProductJsonV1$variant) {
+ $this->variant = $variant;
+ }
+ public function getVariant() {
+ return $this->variant;
+ }
+}
+
+class Google_Service_Shopping_ShoppingModelRecommendationsJsonV1
+ extends Google_Collection {
+ protected $__recommendationListType = 'Google_Service_Shopping_ShoppingModelRecommendationsJsonV1RecommendationList';
+ protected $__recommendationListDataType = 'array';
+ public $recommendationList;
+ public $type;
+ public function setRecommendationList($recommendationList) {
+ $this->recommendationList = $recommendationList;
+ }
+ public function getRecommendationList() {
+ return $this->recommendationList;
+ }
+ public function setType($type) {
+ $this->type = $type;
+ }
+ public function getType() {
+ return $this->type;
+ }
+}
+
+class Google_Service_Shopping_ShoppingModelRecommendationsJsonV1RecommendationList
+ extends Google_Model {
+ protected $__productType = 'Google_Service_Shopping_ShoppingModelProductJsonV1';
+ protected $__productDataType = '';
+ public $product;
+ public function setProduct(Google_Service_Shopping_ShoppingModelProductJsonV1$product) {
+ $this->product = $product;
+ }
+ public function getProduct() {
+ return $this->product;
+ }
+}
diff --git a/src/Google/Service/SiteVerification.php b/src/Google/Service/SiteVerification.php
new file mode 100644
index 0000000..14dd9bf
--- /dev/null
+++ b/src/Google/Service/SiteVerification.php
@@ -0,0 +1,294 @@
+
+ * Lets you programatically verify ownership of websites or domains with Google.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_SiteVerification extends Google_Service { + public $webResource; + /** + * Constructs the internal representation of the SiteVerification service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'siteVerification/v1/'; + $this->version = 'v1'; + $this->serviceName = 'siteVerification'; + + $client->addService($this->serviceName, $this->version); + $this->webResource = new Google_Service_SiteVerification_WebResource_Resource($this, $this->serviceName, 'webResource', json_decode('{"methods": {"delete": {"id": "siteVerification.webResource.delete", "path": "webResource/{id}", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/siteverification"]}, "get": {"id": "siteVerification.webResource.get", "path": "webResource/{id}", "httpMethod": "GET", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "SiteVerificationWebResourceResource"}, "scopes": ["https://www.googleapis.com/auth/siteverification"]}, "getToken": {"id": "siteVerification.webResource.getToken", "path": "token", "httpMethod": "POST", "request": {"$ref": "SiteVerificationWebResourceGettokenRequest"}, "response": {"$ref": "SiteVerificationWebResourceGettokenResponse"}, "scopes": ["https://www.googleapis.com/auth/siteverification", "https://www.googleapis.com/auth/siteverification.verify_only"]}, "insert": {"id": "siteVerification.webResource.insert", "path": "webResource", "httpMethod": "POST", "parameters": {"verificationMethod": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "SiteVerificationWebResourceResource"}, "response": {"$ref": "SiteVerificationWebResourceResource"}, "scopes": ["https://www.googleapis.com/auth/siteverification", "https://www.googleapis.com/auth/siteverification.verify_only"]}, "list": {"id": "siteVerification.webResource.list", "path": "webResource", "httpMethod": "GET", "response": {"$ref": "SiteVerificationWebResourceListResponse"}, "scopes": ["https://www.googleapis.com/auth/siteverification"]}, "patch": {"id": "siteVerification.webResource.patch", "path": "webResource/{id}", "httpMethod": "PATCH", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "SiteVerificationWebResourceResource"}, "response": {"$ref": "SiteVerificationWebResourceResource"}, "scopes": ["https://www.googleapis.com/auth/siteverification"]}, "update": {"id": "siteVerification.webResource.update", "path": "webResource/{id}", "httpMethod": "PUT", "parameters": {"id": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "SiteVerificationWebResourceResource"}, "response": {"$ref": "SiteVerificationWebResourceResource"}, "scopes": ["https://www.googleapis.com/auth/siteverification"]}}}', true)); + + } +} + + + /** + * The "webResource" collection of methods. + * Typical usage is: + *
+ * $siteVerificationService = new Google_SiteVerificationService(...);
+ * $webResource = $siteVerificationService->webResource;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_SiteVerification_SiteVerificationWebResourceResource($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Get a verification token for placing on a website or domain. (webResource.getToken)
+ *
+ * @param Google_SiteVerificationWebResourceGettokenRequest $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse
+ */
+ public function getToken(Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest $postBody, $optParams = array()) {
+ $params = array('postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('getToken', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_SiteVerification_SiteVerificationWebResourceResource($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Get the list of your verified websites and domains. (webResource.list)
+ *
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_SiteVerification_SiteVerificationWebResourceListResponse
+ */
+ public function listWebResource($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_SiteVerification_SiteVerificationWebResourceListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_SiteVerification_SiteVerificationWebResourceResource($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_SiteVerification_SiteVerificationWebResourceResource($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest
+ extends Google_Model {
+ protected $__siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite';
+ protected $__siteDataType = '';
+ public $site;
+ public $verificationMethod;
+ public function setSite(Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite$site) {
+ $this->site = $site;
+ }
+ public function getSite() {
+ return $this->site;
+ }
+ public function setVerificationMethod($verificationMethod) {
+ $this->verificationMethod = $verificationMethod;
+ }
+ public function getVerificationMethod() {
+ return $this->verificationMethod;
+ }
+}
+
+class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite
+ 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_SiteVerification_SiteVerificationWebResourceGettokenResponse
+ extends Google_Model {
+ public $method;
+ public $token;
+ public function setMethod($method) {
+ $this->method = $method;
+ }
+ public function getMethod() {
+ return $this->method;
+ }
+ public function setToken($token) {
+ $this->token = $token;
+ }
+ public function getToken() {
+ return $this->token;
+ }
+}
+
+class Google_Service_SiteVerification_SiteVerificationWebResourceListResponse
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResource';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public function setItems($items) {
+ $this->items = $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 = '';
+ public $site;
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setOwners($owners) {
+ $this->owners = $owners;
+ }
+ public function getOwners() {
+ return $this->owners;
+ }
+ public function setSite(Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite$site) {
+ $this->site = $site;
+ }
+ public function getSite() {
+ return $this->site;
+ }
+}
+
+class Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite
+ 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;
+ }
+}
diff --git a/src/Google/Service/Storage.php b/src/Google/Service/Storage.php
new file mode 100644
index 0000000..90913f7
--- /dev/null
+++ b/src/Google/Service/Storage.php
@@ -0,0 +1,1646 @@
+
+ * Lets you store and retrieve potentially-large, immutable data objects.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Storage extends Google_Service { + 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) { + $this->servicePath = 'storage/v1beta2/'; + $this->version = 'v1beta2'; + $this->serviceName = 'storage'; + + $client->addService($this->serviceName, $this->version); + $this->bucketAccessControls = new Google_Service_Storage_BucketAccessControls_Resource($this, $this->serviceName, 'bucketAccessControls', json_decode('{"methods": {"delete": {"id": "storage.bucketAccessControls.delete", "path": "b/{bucket}/acl/{entity}", "httpMethod": "DELETE", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "get": {"id": "storage.bucketAccessControls.get", "path": "b/{bucket}/acl/{entity}", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "BucketAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "insert": {"id": "storage.bucketAccessControls.insert", "path": "b/{bucket}/acl", "httpMethod": "POST", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "BucketAccessControl"}, "response": {"$ref": "BucketAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "list": {"id": "storage.bucketAccessControls.list", "path": "b/{bucket}/acl", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "BucketAccessControls"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "patch": {"id": "storage.bucketAccessControls.patch", "path": "b/{bucket}/acl/{entity}", "httpMethod": "PATCH", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "BucketAccessControl"}, "response": {"$ref": "BucketAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "update": {"id": "storage.bucketAccessControls.update", "path": "b/{bucket}/acl/{entity}", "httpMethod": "PUT", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "BucketAccessControl"}, "response": {"$ref": "BucketAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}}}', true)); + $this->buckets = new Google_Service_Storage_Buckets_Resource($this, $this->serviceName, 'buckets', json_decode('{"methods": {"delete": {"id": "storage.buckets.delete", "path": "b/{bucket}", "httpMethod": "DELETE", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"]}, "get": {"id": "storage.buckets.get", "path": "b/{bucket}", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "response": {"$ref": "Bucket"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"]}, "insert": {"id": "storage.buckets.insert", "path": "b", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "request": {"$ref": "Bucket"}, "response": {"$ref": "Bucket"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"]}, "list": {"id": "storage.buckets.list", "path": "b", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "response": {"$ref": "Buckets"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"]}, "patch": {"id": "storage.buckets.patch", "path": "b/{bucket}", "httpMethod": "PATCH", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "request": {"$ref": "Bucket"}, "response": {"$ref": "Bucket"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"]}, "update": {"id": "storage.buckets.update", "path": "b/{bucket}", "httpMethod": "PUT", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "request": {"$ref": "Bucket"}, "response": {"$ref": "Bucket"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"]}}}', true)); + $this->channels = new Google_Service_Storage_Channels_Resource($this, $this->serviceName, 'channels', json_decode('{"methods": {"stop": {"id": "storage.channels.stop", "path": "channels/stop", "httpMethod": "POST", "request": {"$ref": "Channel"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"]}}}', true)); + $this->defaultObjectAccessControls = new Google_Service_Storage_DefaultObjectAccessControls_Resource($this, $this->serviceName, 'defaultObjectAccessControls', json_decode('{"methods": {"delete": {"id": "storage.defaultObjectAccessControls.delete", "path": "b/{bucket}/defaultObjectAcl/{entity}", "httpMethod": "DELETE", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "get": {"id": "storage.defaultObjectAccessControls.get", "path": "b/{bucket}/defaultObjectAcl/{entity}", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ObjectAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "insert": {"id": "storage.defaultObjectAccessControls.insert", "path": "b/{bucket}/defaultObjectAcl", "httpMethod": "POST", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ObjectAccessControl"}, "response": {"$ref": "ObjectAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "list": {"id": "storage.defaultObjectAccessControls.list", "path": "b/{bucket}/defaultObjectAcl", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ObjectAccessControls"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "patch": {"id": "storage.defaultObjectAccessControls.patch", "path": "b/{bucket}/defaultObjectAcl/{entity}", "httpMethod": "PATCH", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ObjectAccessControl"}, "response": {"$ref": "ObjectAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "update": {"id": "storage.defaultObjectAccessControls.update", "path": "b/{bucket}/defaultObjectAcl/{entity}", "httpMethod": "PUT", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ObjectAccessControl"}, "response": {"$ref": "ObjectAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}}}', true)); + $this->objectAccessControls = new Google_Service_Storage_ObjectAccessControls_Resource($this, $this->serviceName, 'objectAccessControls', json_decode('{"methods": {"delete": {"id": "storage.objectAccessControls.delete", "path": "b/{bucket}/o/{object}/acl/{entity}", "httpMethod": "DELETE", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "get": {"id": "storage.objectAccessControls.get", "path": "b/{bucket}/o/{object}/acl/{entity}", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ObjectAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "insert": {"id": "storage.objectAccessControls.insert", "path": "b/{bucket}/o/{object}/acl", "httpMethod": "POST", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ObjectAccessControl"}, "response": {"$ref": "ObjectAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "list": {"id": "storage.objectAccessControls.list", "path": "b/{bucket}/o/{object}/acl", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "ObjectAccessControls"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "patch": {"id": "storage.objectAccessControls.patch", "path": "b/{bucket}/o/{object}/acl/{entity}", "httpMethod": "PATCH", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ObjectAccessControl"}, "response": {"$ref": "ObjectAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}, "update": {"id": "storage.objectAccessControls.update", "path": "b/{bucket}/o/{object}/acl/{entity}", "httpMethod": "PUT", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "entity": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "ObjectAccessControl"}, "response": {"$ref": "ObjectAccessControl"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]}}}', true)); + $this->objects = new Google_Service_Storage_Objects_Resource($this, $this->serviceName, 'objects', json_decode('{"methods": {"compose": {"id": "storage.objects.compose", "path": "b/{destinationBucket}/o/{destinationObject}/compose", "httpMethod": "POST", "parameters": {"destinationBucket": {"type": "string", "required": true, "location": "path"}, "destinationObject": {"type": "string", "required": true, "location": "path"}, "ifGenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}}, "request": {"$ref": "ComposeRequest"}, "response": {"$ref": "Object"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"], "supportsMediaDownload": true}, "copy": {"id": "storage.objects.copy", "path": "b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}", "httpMethod": "POST", "parameters": {"destinationBucket": {"type": "string", "required": true, "location": "path"}, "destinationObject": {"type": "string", "required": true, "location": "path"}, "ifGenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifSourceGenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifSourceGenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifSourceMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifSourceMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}, "sourceBucket": {"type": "string", "required": true, "location": "path"}, "sourceGeneration": {"type": "string", "format": "uint64", "location": "query"}, "sourceObject": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Object"}, "response": {"$ref": "Object"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"], "supportsMediaDownload": true}, "delete": {"id": "storage.objects.delete", "path": "b/{bucket}/o/{object}", "httpMethod": "DELETE", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"]}, "get": {"id": "storage.objects.get", "path": "b/{bucket}/o/{object}", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "response": {"$ref": "Object"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"], "supportsMediaDownload": true}, "insert": {"id": "storage.objects.insert", "path": "b/{bucket}/o", "httpMethod": "POST", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "ifGenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "name": {"type": "string", "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "request": {"$ref": "Object"}, "response": {"$ref": "Object"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"], "supportsMediaDownload": true, "supportsMediaUpload": true, "mediaUpload": {"accept": ["*/*"], "protocols": {"simple": {"multipart": true, "path": "/upload/storage/v1beta2/b/{bucket}/o"}, "resumable": {"multipart": true, "path": "/resumable/upload/storage/v1beta2/b/{bucket}/o"}}}}, "list": {"id": "storage.objects.list", "path": "b/{bucket}/o", "httpMethod": "GET", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "delimiter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "prefix": {"type": "string", "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}, "versions": {"type": "boolean", "location": "query"}}, "response": {"$ref": "Objects"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"], "supportsSubscription": true}, "patch": {"id": "storage.objects.patch", "path": "b/{bucket}/o/{object}", "httpMethod": "PATCH", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "request": {"$ref": "Object"}, "response": {"$ref": "Object"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"]}, "update": {"id": "storage.objects.update", "path": "b/{bucket}/o/{object}", "httpMethod": "PUT", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "generation": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifGenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationMatch": {"type": "string", "format": "uint64", "location": "query"}, "ifMetagenerationNotMatch": {"type": "string", "format": "uint64", "location": "query"}, "object": {"type": "string", "required": true, "location": "path"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}}, "request": {"$ref": "Object"}, "response": {"$ref": "Object"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_write"], "supportsMediaDownload": true}, "watchAll": {"id": "storage.objects.watchAll", "path": "b/{bucket}/o/watch", "httpMethod": "POST", "parameters": {"bucket": {"type": "string", "required": true, "location": "path"}, "delimiter": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "prefix": {"type": "string", "location": "query"}, "projection": {"type": "string", "enum": ["full", "noAcl"], "location": "query"}, "versions": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Channel"}, "response": {"$ref": "Channel"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write"], "supportsSubscription": true}}}', true)); + + } +} + + + /** + * The "bucketAccessControls" collection of methods. + * Typical usage is: + *
+ * $storageService = new Google_StorageService(...);
+ * $bucketAccessControls = $storageService->bucketAccessControls;
+ *
+ */
+ 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, group-groupId, 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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, group-groupId, 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_BucketAccessControl($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_BucketAccessControl($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves ACL entries on the specified bucket. (bucketAccessControls.list)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storage_BucketAccessControls
+ */
+ public function listBucketAccessControls($bucket, $optParams = array()) {
+ $params = array('bucket' => $bucket);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_BucketAccessControls($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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, group-groupId, 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_BucketAccessControl($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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, group-groupId, 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_BucketAccessControl($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "buckets" collection of methods.
+ * Typical usage is:
+ *
+ * $storageService = new Google_StorageService(...);
+ * $buckets = $storageService->buckets;
+ *
+ */
+ 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 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.
+ */
+ public function delete($bucket, $optParams = array()) {
+ $params = array('bucket' => $bucket);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_Bucket($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Creates a new bucket. (buckets.insert)
+ *
+ * @param string $project A valid API project identifier.
+ * @param Google_Bucket $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projection Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.
+ * @return Google_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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_Bucket($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves a list of buckets for a given project. (buckets.list)
+ *
+ * @param string $project A valid API project identifier.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of buckets to return.
+ * @opt_param string pageToken A previously-returned page token representing part of the larger set of results to view.
+ * @opt_param string projection Set of properties to return. Defaults to noAcl.
+ * @return Google_Service_Storage_Buckets
+ */
+ public function listBuckets($project, $optParams = array()) {
+ $params = array('project' => $project);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_Buckets($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_Bucket($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Updates a bucket. (buckets.update)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param Google_Bucket $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string ifMetagenerationMatch Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
+ * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
+ * @opt_param string projection Set of properties to return. Defaults to full.
+ * @return Google_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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_Bucket($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "channels" collection of methods.
+ * Typical usage is:
+ *
+ * $storageService = new Google_StorageService(...);
+ * $channels = $storageService->channels;
+ *
+ */
+ class Google_Service_Storage_Channels_Resource extends Google_Service_Resource {
+
+
+ /**
+ * (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);
+ $data = $this->__call('stop', array($params));
+ return $data;
+ }
+ }
+
+ /**
+ * The "defaultObjectAccessControls" collection of methods.
+ * Typical usage is:
+ *
+ * $storageService = new Google_StorageService(...);
+ * $defaultObjectAccessControls = $storageService->defaultObjectAccessControls;
+ *
+ */
+ 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, group-groupId, 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * Returns the default object ACL entry for the specified entity on the specified bucket.
+ * (defaultObjectAccessControls.get)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storage_ObjectAccessControl
+ */
+ public function get($bucket, $entity, $optParams = array()) {
+ $params = array('bucket' => $bucket, 'entity' => $entity);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_ObjectAccessControl($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Creates a new default object ACL entry on the specified bucket.
+ * (defaultObjectAccessControls.insert)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param Google_ObjectAccessControl $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_ObjectAccessControl($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves default object ACL entries on the specified bucket. (defaultObjectAccessControls.list)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Storage_ObjectAccessControls
+ */
+ public function listDefaultObjectAccessControls($bucket, $optParams = array()) {
+ $params = array('bucket' => $bucket);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_ObjectAccessControls($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Updates a default object ACL entry on the specified bucket. This method supports patch semantics.
+ * (defaultObjectAccessControls.patch)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string $entity The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers.
+ * @param Google_ObjectAccessControl $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_ObjectAccessControl($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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, group-groupId, 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_ObjectAccessControl($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "objectAccessControls" collection of methods.
+ * Typical usage is:
+ *
+ * $storageService = new Google_StorageService(...);
+ * $objectAccessControls = $storageService->objectAccessControls;
+ *
+ */
+ 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, group-groupId, 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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, group-groupId, 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_ObjectAccessControl($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_ObjectAccessControl($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves ACL entries on the specified object. (objectAccessControls.list)
+ *
+ * @param string $bucket Name of a bucket.
+ * @param string $object Name of the object.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default).
+ * @return Google_Service_Storage_ObjectAccessControls
+ */
+ public function listObjectAccessControls($bucket, $object, $optParams = array()) {
+ $params = array('bucket' => $bucket, 'object' => $object);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_ObjectAccessControls($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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, group-groupId, 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_ObjectAccessControl($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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, group-groupId, 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_ObjectAccessControl($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "objects" collection of methods.
+ * Typical usage is:
+ *
+ * $storageService = new Google_StorageService(...);
+ * $objects = $storageService->objects;
+ *
+ */
+ 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.
+ * @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);
+ $data = $this->__call('compose', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_StorageObject($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Copies an object to a destination in the same location. Optionally overrides metadata.
+ * (objects.copy)
+ *
+ * @param string $sourceBucket Name of the bucket in which to find the source object.
+ * @param string $sourceObject Name of the source object.
+ * @param string $destinationBucket Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any.
+ * @param string $destinationObject Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any.
+ * @param Google_StorageObject $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string ifGenerationMatch Makes the operation conditional on whether the destination object's current generation matches the given value.
+ * @opt_param string ifGenerationNotMatch Makes the operation conditional on whether the destination object's current generation does not match the given value.
+ * @opt_param string ifMetagenerationMatch Makes the operation conditional on whether the destination object's current metageneration matches the given value.
+ * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on whether the destination object's current metageneration does not match the given value.
+ * @opt_param string ifSourceGenerationMatch Makes the operation conditional on whether the source object's generation matches the given value.
+ * @opt_param string ifSourceGenerationNotMatch Makes the operation conditional on whether the source object's generation does not match the given value.
+ * @opt_param string ifSourceMetagenerationMatch Makes the operation conditional on whether the source object's current metageneration matches the given value.
+ * @opt_param string ifSourceMetagenerationNotMatch Makes the operation conditional on whether the source object's current metageneration does not match the given value.
+ * @opt_param string projection Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.
+ * @opt_param string sourceGeneration If present, selects a specific revision of the source object (as opposed to the latest version, the default).
+ * @return Google_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);
+ $data = $this->__call('copy', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_StorageObject($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Deletes data blobs and associated 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 generation If present, permanently deletes a specific revision of this object (as opposed to the latest version, the default).
+ * @opt_param string ifGenerationMatch Makes the operation conditional on whether the object's current generation matches the given value.
+ * @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 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * Retrieves objects or their associated metadata. (objects.get)
+ *
+ * @param string $bucket Name of the bucket in which the object resides.
+ * @param string $object Name of the object.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string generation If present, selects a specific revision of this object (as opposed to the latest version, the default).
+ * @opt_param string ifGenerationMatch Makes the operation conditional on whether the object's generation matches the given value.
+ * @opt_param string ifGenerationNotMatch Makes the operation conditional on whether the object's generation does not match the given value.
+ * @opt_param string ifMetagenerationMatch Makes the operation conditional on whether the object's current metageneration matches the given value.
+ * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on whether the object's current metageneration does not match the given value.
+ * @opt_param string projection Set of properties to return. Defaults to noAcl.
+ * @return Google_Service_Storage_StorageObject
+ */
+ public function get($bucket, $object, $optParams = array()) {
+ $params = array('bucket' => $bucket, 'object' => $object);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_StorageObject($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Stores new data blobs and associated 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 ifGenerationMatch Makes the operation conditional on whether the object's current generation matches the given value.
+ * @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 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.
+ * @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 insert($bucket, Google_Service_Storage_StorageObject $postBody, $optParams = array()) {
+ $params = array('bucket' => $bucket, 'postBody' => $postBody);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_StorageObject($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves a list of objects matching the criteria. (objects.list)
+ *
+ * @param string $bucket Name of the bucket in which to look for objects.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string delimiter Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
+ * @opt_param string maxResults Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.
+ * @opt_param string pageToken A previously-returned page token representing part of the larger set of results to view.
+ * @opt_param string prefix Filter results to objects whose names begin with this prefix.
+ * @opt_param string projection Set of properties to return. Defaults to noAcl.
+ * @opt_param bool versions If true, lists all versions of a file as distinct results.
+ * @return Google_Service_Storage_Objects
+ */
+ public function listObjects($bucket, $optParams = array()) {
+ $params = array('bucket' => $bucket);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_Objects($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Updates a data blob's associated 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 generation If present, selects a specific revision of this object (as opposed to the latest version, the default).
+ * @opt_param string ifGenerationMatch Makes the operation conditional on whether the object's current generation matches the given value.
+ * @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 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_StorageObject($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Updates a data blob's associated 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 generation If present, selects a specific revision of this object (as opposed to the latest version, the default).
+ * @opt_param string ifGenerationMatch Makes the operation conditional on whether the object's current generation matches the given value.
+ * @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 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_StorageObject($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Watch for changes on all objects in a bucket. (objects.watchAll)
+ *
+ * @param string $bucket Name of the bucket in which to look for objects.
+ * @param Google_Channel $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string delimiter Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
+ * @opt_param string maxResults Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.
+ * @opt_param string pageToken A previously-returned page token representing part of the larger set of results to view.
+ * @opt_param string prefix Filter results to objects whose names begin with this prefix.
+ * @opt_param string projection Set of properties to return. Defaults to noAcl.
+ * @opt_param bool versions If true, lists all versions of a file as distinct results.
+ * @return Google_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);
+ $data = $this->__call('watchAll', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Storage_Channel($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Storage_Bucket
+ extends Google_Collection {
+ protected $__aclType = 'Google_Service_Storage_BucketAccessControl';
+ protected $__aclDataType = 'array';
+ public $acl;
+ protected $__corsType = 'Google_Service_Storage_BucketCors';
+ protected $__corsDataType = 'array';
+ public $cors;
+ protected $__defaultObjectAclType = 'Google_Service_Storage_ObjectAccessControl';
+ protected $__defaultObjectAclDataType = 'array';
+ public $defaultObjectAcl;
+ public $etag;
+ public $id;
+ public $kind;
+ public $location;
+ protected $__loggingType = 'Google_Service_Storage_BucketLogging';
+ protected $__loggingDataType = '';
+ public $logging;
+ public $metageneration;
+ public $name;
+ protected $__ownerType = 'Google_Service_Storage_BucketOwner';
+ protected $__ownerDataType = '';
+ public $owner;
+ public $selfLink;
+ public $storageClass;
+ public $timeCreated;
+ protected $__versioningType = 'Google_Service_Storage_BucketVersioning';
+ protected $__versioningDataType = '';
+ public $versioning;
+ protected $__websiteType = 'Google_Service_Storage_BucketWebsite';
+ protected $__websiteDataType = '';
+ public $website;
+ public function setAcl($acl) {
+ $this->acl = $acl;
+ }
+ public function getAcl() {
+ return $this->acl;
+ }
+ public function setCors($cors) {
+ $this->cors = $cors;
+ }
+ public function getCors() {
+ return $this->cors;
+ }
+ public function setDefaultObjectAcl($defaultObjectAcl) {
+ $this->defaultObjectAcl = $defaultObjectAcl;
+ }
+ public function getDefaultObjectAcl() {
+ return $this->defaultObjectAcl;
+ }
+ 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 setLocation($location) {
+ $this->location = $location;
+ }
+ public function getLocation() {
+ return $this->location;
+ }
+ public function setLogging(Google_Service_Storage_BucketLogging$logging) {
+ $this->logging = $logging;
+ }
+ public function getLogging() {
+ return $this->logging;
+ }
+ public function setMetageneration($metageneration) {
+ $this->metageneration = $metageneration;
+ }
+ public function getMetageneration() {
+ return $this->metageneration;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setOwner(Google_Service_Storage_BucketOwner$owner) {
+ $this->owner = $owner;
+ }
+ public function getOwner() {
+ return $this->owner;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+ public function setStorageClass($storageClass) {
+ $this->storageClass = $storageClass;
+ }
+ public function getStorageClass() {
+ return $this->storageClass;
+ }
+ public function setTimeCreated($timeCreated) {
+ $this->timeCreated = $timeCreated;
+ }
+ public function getTimeCreated() {
+ return $this->timeCreated;
+ }
+ public function setVersioning(Google_Service_Storage_BucketVersioning$versioning) {
+ $this->versioning = $versioning;
+ }
+ public function getVersioning() {
+ return $this->versioning;
+ }
+ public function setWebsite(Google_Service_Storage_BucketWebsite$website) {
+ $this->website = $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;
+ public $role;
+ public $selfLink;
+ public function setBucket($bucket) {
+ $this->bucket = $bucket;
+ }
+ public function getBucket() {
+ return $this->bucket;
+ }
+ public function setDomain($domain) {
+ $this->domain = $domain;
+ }
+ public function getDomain() {
+ return $this->domain;
+ }
+ public function setEmail($email) {
+ $this->email = $email;
+ }
+ public function getEmail() {
+ return $this->email;
+ }
+ public function setEntity($entity) {
+ $this->entity = $entity;
+ }
+ public function getEntity() {
+ return $this->entity;
+ }
+ public function setEntityId($entityId) {
+ $this->entityId = $entityId;
+ }
+ public function getEntityId() {
+ return $this->entityId;
+ }
+ 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 setRole($role) {
+ $this->role = $role;
+ }
+ public function getRole() {
+ return $this->role;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_Storage_BucketAccessControls
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Storage_BucketAccessControl';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_Storage_BucketCors
+ extends Google_Collection {
+ public $maxAgeSeconds;
+ public $method;
+ public $origin;
+ public $responseHeader;
+ public function setMaxAgeSeconds($maxAgeSeconds) {
+ $this->maxAgeSeconds = $maxAgeSeconds;
+ }
+ public function getMaxAgeSeconds() {
+ return $this->maxAgeSeconds;
+ }
+ public function setMethod($method) {
+ $this->method = $method;
+ }
+ public function getMethod() {
+ return $this->method;
+ }
+ public function setOrigin($origin) {
+ $this->origin = $origin;
+ }
+ public function getOrigin() {
+ return $this->origin;
+ }
+ public function setResponseHeader($responseHeader) {
+ $this->responseHeader = $responseHeader;
+ }
+ public function getResponseHeader() {
+ return $this->responseHeader;
+ }
+}
+
+class Google_Service_Storage_BucketLogging
+ extends Google_Model {
+ public $logBucket;
+ public $logObjectPrefix;
+ public function setLogBucket($logBucket) {
+ $this->logBucket = $logBucket;
+ }
+ public function getLogBucket() {
+ return $this->logBucket;
+ }
+ public function setLogObjectPrefix($logObjectPrefix) {
+ $this->logObjectPrefix = $logObjectPrefix;
+ }
+ public function getLogObjectPrefix() {
+ return $this->logObjectPrefix;
+ }
+}
+
+class Google_Service_Storage_BucketOwner
+ extends Google_Model {
+ public $entity;
+ public $entityId;
+ public function setEntity($entity) {
+ $this->entity = $entity;
+ }
+ public function getEntity() {
+ return $this->entity;
+ }
+ public function setEntityId($entityId) {
+ $this->entityId = $entityId;
+ }
+ public function getEntityId() {
+ return $this->entityId;
+ }
+}
+
+class Google_Service_Storage_BucketVersioning
+ extends Google_Model {
+ public $enabled;
+ public function setEnabled($enabled) {
+ $this->enabled = $enabled;
+ }
+ public function getEnabled() {
+ return $this->enabled;
+ }
+}
+
+class Google_Service_Storage_BucketWebsite
+ extends Google_Model {
+ public $mainPageSuffix;
+ public $notFoundPage;
+ public function setMainPageSuffix($mainPageSuffix) {
+ $this->mainPageSuffix = $mainPageSuffix;
+ }
+ public function getMainPageSuffix() {
+ return $this->mainPageSuffix;
+ }
+ public function setNotFoundPage($notFoundPage) {
+ $this->notFoundPage = $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 $items;
+ 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_Storage_Channel
+ extends Google_Model {
+ public $address;
+ public $expiration;
+ public $id;
+ public $kind;
+ public $params;
+ public $resourceId;
+ public $resourceUri;
+ public $token;
+ public $type;
+ public function setAddress($address) {
+ $this->address = $address;
+ }
+ public function getAddress() {
+ return $this->address;
+ }
+ public function setExpiration($expiration) {
+ $this->expiration = $expiration;
+ }
+ public function getExpiration() {
+ return $this->expiration;
+ }
+ 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 setParams($params) {
+ $this->params = $params;
+ }
+ public function getParams() {
+ return $this->params;
+ }
+ public function setResourceId($resourceId) {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId() {
+ return $this->resourceId;
+ }
+ public function setResourceUri($resourceUri) {
+ $this->resourceUri = $resourceUri;
+ }
+ public function getResourceUri() {
+ return $this->resourceUri;
+ }
+ public function setToken($token) {
+ $this->token = $token;
+ }
+ public function getToken() {
+ return $this->token;
+ }
+ public function setType($type) {
+ $this->type = $type;
+ }
+ public function getType() {
+ return $this->type;
+ }
+}
+
+class Google_Service_Storage_ComposeRequest
+ extends Google_Collection {
+ protected $__destinationType = 'Google_Service_Storage_StorageObject';
+ protected $__destinationDataType = '';
+ public $destination;
+ public $kind;
+ protected $__sourceObjectsType = 'Google_Service_Storage_ComposeRequestSourceObjects';
+ protected $__sourceObjectsDataType = 'array';
+ public $sourceObjects;
+ public function setDestination(Google_Service_Storage_StorageObject$destination) {
+ $this->destination = $destination;
+ }
+ public function getDestination() {
+ return $this->destination;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setSourceObjects($sourceObjects) {
+ $this->sourceObjects = $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 = '';
+ public $objectPreconditions;
+ public function setGeneration($generation) {
+ $this->generation = $generation;
+ }
+ public function getGeneration() {
+ return $this->generation;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setObjectPreconditions(Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions$objectPreconditions) {
+ $this->objectPreconditions = $objectPreconditions;
+ }
+ public function getObjectPreconditions() {
+ return $this->objectPreconditions;
+ }
+}
+
+class Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions
+ extends Google_Model {
+ public $ifGenerationMatch;
+ public function setIfGenerationMatch($ifGenerationMatch) {
+ $this->ifGenerationMatch = $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;
+ public $role;
+ public $selfLink;
+ public function setBucket($bucket) {
+ $this->bucket = $bucket;
+ }
+ public function getBucket() {
+ return $this->bucket;
+ }
+ public function setDomain($domain) {
+ $this->domain = $domain;
+ }
+ public function getDomain() {
+ return $this->domain;
+ }
+ public function setEmail($email) {
+ $this->email = $email;
+ }
+ public function getEmail() {
+ return $this->email;
+ }
+ public function setEntity($entity) {
+ $this->entity = $entity;
+ }
+ public function getEntity() {
+ return $this->entity;
+ }
+ public function setEntityId($entityId) {
+ $this->entityId = $entityId;
+ }
+ public function getEntityId() {
+ return $this->entityId;
+ }
+ public function setEtag($etag) {
+ $this->etag = $etag;
+ }
+ public function getEtag() {
+ return $this->etag;
+ }
+ public function setGeneration($generation) {
+ $this->generation = $generation;
+ }
+ public function getGeneration() {
+ return $this->generation;
+ }
+ 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 setObject($object) {
+ $this->object = $object;
+ }
+ public function getObject() {
+ return $this->object;
+ }
+ public function setRole($role) {
+ $this->role = $role;
+ }
+ public function getRole() {
+ return $this->role;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+}
+
+class Google_Service_Storage_ObjectAccessControls
+ extends Google_Collection {
+ public $items;
+ 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_Storage_Objects
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Storage_StorageObject';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $nextPageToken;
+ public $prefixes;
+ 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 setPrefixes($prefixes) {
+ $this->prefixes = $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 $acl;
+ 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 $owner;
+ public $selfLink;
+ public $size;
+ public $timeDeleted;
+ public $updated;
+ public function setAcl($acl) {
+ $this->acl = $acl;
+ }
+ public function getAcl() {
+ return $this->acl;
+ }
+ public function setBucket($bucket) {
+ $this->bucket = $bucket;
+ }
+ public function getBucket() {
+ return $this->bucket;
+ }
+ public function setCacheControl($cacheControl) {
+ $this->cacheControl = $cacheControl;
+ }
+ public function getCacheControl() {
+ return $this->cacheControl;
+ }
+ public function setComponentCount($componentCount) {
+ $this->componentCount = $componentCount;
+ }
+ public function getComponentCount() {
+ return $this->componentCount;
+ }
+ public function setContentDisposition($contentDisposition) {
+ $this->contentDisposition = $contentDisposition;
+ }
+ public function getContentDisposition() {
+ return $this->contentDisposition;
+ }
+ public function setContentEncoding($contentEncoding) {
+ $this->contentEncoding = $contentEncoding;
+ }
+ public function getContentEncoding() {
+ return $this->contentEncoding;
+ }
+ 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 setCrc32c($crc32c) {
+ $this->crc32c = $crc32c;
+ }
+ public function getCrc32c() {
+ return $this->crc32c;
+ }
+ public function setEtag($etag) {
+ $this->etag = $etag;
+ }
+ public function getEtag() {
+ return $this->etag;
+ }
+ public function setGeneration($generation) {
+ $this->generation = $generation;
+ }
+ public function getGeneration() {
+ return $this->generation;
+ }
+ 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 setMd5Hash($md5Hash) {
+ $this->md5Hash = $md5Hash;
+ }
+ public function getMd5Hash() {
+ return $this->md5Hash;
+ }
+ public function setMediaLink($mediaLink) {
+ $this->mediaLink = $mediaLink;
+ }
+ public function getMediaLink() {
+ return $this->mediaLink;
+ }
+ public function setMetadata($metadata) {
+ $this->metadata = $metadata;
+ }
+ public function getMetadata() {
+ return $this->metadata;
+ }
+ public function setMetageneration($metageneration) {
+ $this->metageneration = $metageneration;
+ }
+ public function getMetageneration() {
+ return $this->metageneration;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+ public function setOwner(Google_Service_Storage_StorageObjectOwner$owner) {
+ $this->owner = $owner;
+ }
+ public function getOwner() {
+ return $this->owner;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+ public function setSize($size) {
+ $this->size = $size;
+ }
+ public function getSize() {
+ return $this->size;
+ }
+ public function setTimeDeleted($timeDeleted) {
+ $this->timeDeleted = $timeDeleted;
+ }
+ public function getTimeDeleted() {
+ return $this->timeDeleted;
+ }
+ public function setUpdated($updated) {
+ $this->updated = $updated;
+ }
+ public function getUpdated() {
+ return $this->updated;
+ }
+}
+
+class Google_Service_Storage_StorageObjectOwner
+ extends Google_Model {
+ public $entity;
+ public $entityId;
+ public function setEntity($entity) {
+ $this->entity = $entity;
+ }
+ public function getEntity() {
+ return $this->entity;
+ }
+ public function setEntityId($entityId) {
+ $this->entityId = $entityId;
+ }
+ public function getEntityId() {
+ return $this->entityId;
+ }
+}
diff --git a/src/Google/Service/Taskqueue.php b/src/Google/Service/Taskqueue.php
new file mode 100644
index 0000000..e2b1e74
--- /dev/null
+++ b/src/Google/Service/Taskqueue.php
@@ -0,0 +1,434 @@
+
+ * Lets you access a Google App Engine Pull Task Queue over REST.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Taskqueue extends Google_Service { + public $taskqueues; + public $tasks; + /** + * Constructs the internal representation of the Taskqueue service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'taskqueue/v1beta2/projects/'; + $this->version = 'v1beta2'; + $this->serviceName = 'taskqueue'; + + $client->addService($this->serviceName, $this->version); + $this->taskqueues = new Google_Service_Taskqueue_Taskqueues_Resource($this, $this->serviceName, 'taskqueues', json_decode('{"methods": {"get": {"id": "taskqueue.taskqueues.get", "path": "{project}/taskqueues/{taskqueue}", "httpMethod": "GET", "parameters": {"getStats": {"type": "boolean", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}, "taskqueue": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "TaskQueue"}, "scopes": ["https://www.googleapis.com/auth/taskqueue", "https://www.googleapis.com/auth/taskqueue.consumer"]}}}', true)); + $this->tasks = new Google_Service_Taskqueue_Tasks_Resource($this, $this->serviceName, 'tasks', json_decode('{"methods": {"delete": {"id": "taskqueue.tasks.delete", "path": "{project}/taskqueues/{taskqueue}/tasks/{task}", "httpMethod": "DELETE", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "task": {"type": "string", "required": true, "location": "path"}, "taskqueue": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/taskqueue", "https://www.googleapis.com/auth/taskqueue.consumer"]}, "get": {"id": "taskqueue.tasks.get", "path": "{project}/taskqueues/{taskqueue}/tasks/{task}", "httpMethod": "GET", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "task": {"type": "string", "required": true, "location": "path"}, "taskqueue": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Task"}, "scopes": ["https://www.googleapis.com/auth/taskqueue", "https://www.googleapis.com/auth/taskqueue.consumer"]}, "insert": {"id": "taskqueue.tasks.insert", "path": "{project}/taskqueues/{taskqueue}/tasks", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "taskqueue": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Task"}, "response": {"$ref": "Task"}, "scopes": ["https://www.googleapis.com/auth/taskqueue", "https://www.googleapis.com/auth/taskqueue.consumer"]}, "lease": {"id": "taskqueue.tasks.lease", "path": "{project}/taskqueues/{taskqueue}/tasks/lease", "httpMethod": "POST", "parameters": {"groupByTag": {"type": "boolean", "location": "query"}, "leaseSecs": {"type": "integer", "required": true, "format": "int32", "location": "query"}, "numTasks": {"type": "integer", "required": true, "format": "int32", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}, "tag": {"type": "string", "location": "query"}, "taskqueue": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Tasks"}, "scopes": ["https://www.googleapis.com/auth/taskqueue", "https://www.googleapis.com/auth/taskqueue.consumer"]}, "list": {"id": "taskqueue.tasks.list", "path": "{project}/taskqueues/{taskqueue}/tasks", "httpMethod": "GET", "parameters": {"project": {"type": "string", "required": true, "location": "path"}, "taskqueue": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Tasks2"}, "scopes": ["https://www.googleapis.com/auth/taskqueue", "https://www.googleapis.com/auth/taskqueue.consumer"]}, "patch": {"id": "taskqueue.tasks.patch", "path": "{project}/taskqueues/{taskqueue}/tasks/{task}", "httpMethod": "PATCH", "parameters": {"newLeaseSeconds": {"type": "integer", "required": true, "format": "int32", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}, "task": {"type": "string", "required": true, "location": "path"}, "taskqueue": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Task"}, "response": {"$ref": "Task"}, "scopes": ["https://www.googleapis.com/auth/taskqueue", "https://www.googleapis.com/auth/taskqueue.consumer"]}, "update": {"id": "taskqueue.tasks.update", "path": "{project}/taskqueues/{taskqueue}/tasks/{task}", "httpMethod": "POST", "parameters": {"newLeaseSeconds": {"type": "integer", "required": true, "format": "int32", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}, "task": {"type": "string", "required": true, "location": "path"}, "taskqueue": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Task"}, "response": {"$ref": "Task"}, "scopes": ["https://www.googleapis.com/auth/taskqueue", "https://www.googleapis.com/auth/taskqueue.consumer"]}}}', true)); + + } +} + + + /** + * The "taskqueues" collection of methods. + * Typical usage is: + *
+ * $taskqueueService = new Google_TaskqueueService(...);
+ * $taskqueues = $taskqueueService->taskqueues;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Taskqueue_TaskQueue($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "tasks" collection of methods.
+ * Typical usage is:
+ *
+ * $taskqueueService = new Google_TaskqueueService(...);
+ * $tasks = $taskqueueService->tasks;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Taskqueue_Task($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Insert a new task in a TaskQueue (tasks.insert)
+ *
+ * @param string $project The project under which the queue lies
+ * @param string $taskqueue The taskqueue to insert the task into
+ * @param Google_Task $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Taskqueue_Task($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('lease', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Taskqueue_Tasks($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * List Tasks in a TaskQueue (tasks.list)
+ *
+ * @param string $project The project under which the queue lies.
+ * @param string $taskqueue The id of the taskqueue to list tasks from.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Taskqueue_Tasks2
+ */
+ public function listTasks($project, $taskqueue, $optParams = array()) {
+ $params = array('project' => $project, 'taskqueue' => $taskqueue);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Taskqueue_Tasks2($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Taskqueue_Task($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Update tasks that are leased out of a TaskQueue. (tasks.update)
+ *
+ * @param string $project The project under which the queue lies.
+ * @param string $taskqueue
+ * @param string $task
+ * @param int $newLeaseSeconds The new lease in seconds.
+ * @param Google_Task $postBody
+ * @param array $optParams Optional parameters.
+ * @return Google_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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Taskqueue_Task($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Taskqueue_Task
+ extends Google_Model {
+ public $enqueueTimestamp;
+ public $id;
+ public $kind;
+ public $leaseTimestamp;
+ public $payloadBase64;
+ public $queueName;
+ public $retry_count;
+ public $tag;
+ public function setEnqueueTimestamp($enqueueTimestamp) {
+ $this->enqueueTimestamp = $enqueueTimestamp;
+ }
+ public function getEnqueueTimestamp() {
+ return $this->enqueueTimestamp;
+ }
+ 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 setLeaseTimestamp($leaseTimestamp) {
+ $this->leaseTimestamp = $leaseTimestamp;
+ }
+ public function getLeaseTimestamp() {
+ return $this->leaseTimestamp;
+ }
+ public function setPayloadBase64($payloadBase64) {
+ $this->payloadBase64 = $payloadBase64;
+ }
+ public function getPayloadBase64() {
+ return $this->payloadBase64;
+ }
+ public function setQueueName($queueName) {
+ $this->queueName = $queueName;
+ }
+ public function getQueueName() {
+ return $this->queueName;
+ }
+ public function setRetry_count($retry_count) {
+ $this->retry_count = $retry_count;
+ }
+ public function getRetry_count() {
+ return $this->retry_count;
+ }
+ public function setTag($tag) {
+ $this->tag = $tag;
+ }
+ public function getTag() {
+ return $this->tag;
+ }
+}
+
+class Google_Service_Taskqueue_TaskQueue
+ extends Google_Model {
+ protected $__aclType = 'Google_Service_Taskqueue_TaskQueueAcl';
+ protected $__aclDataType = '';
+ public $acl;
+ public $id;
+ public $kind;
+ public $maxLeases;
+ protected $__statsType = 'Google_Service_Taskqueue_TaskQueueStats';
+ protected $__statsDataType = '';
+ public $stats;
+ public function setAcl(Google_Service_Taskqueue_TaskQueueAcl$acl) {
+ $this->acl = $acl;
+ }
+ public function getAcl() {
+ return $this->acl;
+ }
+ 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 setMaxLeases($maxLeases) {
+ $this->maxLeases = $maxLeases;
+ }
+ public function getMaxLeases() {
+ return $this->maxLeases;
+ }
+ public function setStats(Google_Service_Taskqueue_TaskQueueStats$stats) {
+ $this->stats = $stats;
+ }
+ public function getStats() {
+ return $this->stats;
+ }
+}
+
+class Google_Service_Taskqueue_TaskQueueAcl
+ extends Google_Collection {
+ public $adminEmails;
+ public $consumerEmails;
+ public $producerEmails;
+ public function setAdminEmails($adminEmails) {
+ $this->adminEmails = $adminEmails;
+ }
+ public function getAdminEmails() {
+ return $this->adminEmails;
+ }
+ public function setConsumerEmails($consumerEmails) {
+ $this->consumerEmails = $consumerEmails;
+ }
+ public function getConsumerEmails() {
+ return $this->consumerEmails;
+ }
+ public function setProducerEmails($producerEmails) {
+ $this->producerEmails = $producerEmails;
+ }
+ public function getProducerEmails() {
+ return $this->producerEmails;
+ }
+}
+
+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 getLeasedLastHour() {
+ return $this->leasedLastHour;
+ }
+ public function setLeasedLastMinute($leasedLastMinute) {
+ $this->leasedLastMinute = $leasedLastMinute;
+ }
+ public function getLeasedLastMinute() {
+ return $this->leasedLastMinute;
+ }
+ public function setOldestTask($oldestTask) {
+ $this->oldestTask = $oldestTask;
+ }
+ public function getOldestTask() {
+ return $this->oldestTask;
+ }
+ public function setTotalTasks($totalTasks) {
+ $this->totalTasks = $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 $items;
+ 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_Taskqueue_Tasks2
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Taskqueue_Task';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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;
+ }
+}
diff --git a/src/Google/Service/Tasks.php b/src/Google/Service/Tasks.php
new file mode 100644
index 0000000..c68f6cb
--- /dev/null
+++ b/src/Google/Service/Tasks.php
@@ -0,0 +1,585 @@
+
+ * Lets you manage your tasks and task lists.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Tasks extends Google_Service { + public $tasklists; + public $tasks; + /** + * Constructs the internal representation of the Tasks service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'tasks/v1/'; + $this->version = 'v1'; + $this->serviceName = 'tasks'; + + $client->addService($this->serviceName, $this->version); + $this->tasklists = new Google_Service_Tasks_Tasklists_Resource($this, $this->serviceName, 'tasklists', json_decode('{"methods": {"delete": {"id": "tasks.tasklists.delete", "path": "users/@me/lists/{tasklist}", "httpMethod": "DELETE", "parameters": {"tasklist": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/tasks"]}, "get": {"id": "tasks.tasklists.get", "path": "users/@me/lists/{tasklist}", "httpMethod": "GET", "parameters": {"tasklist": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "TaskList"}, "scopes": ["https://www.googleapis.com/auth/tasks", "https://www.googleapis.com/auth/tasks.readonly"]}, "insert": {"id": "tasks.tasklists.insert", "path": "users/@me/lists", "httpMethod": "POST", "request": {"$ref": "TaskList"}, "response": {"$ref": "TaskList"}, "scopes": ["https://www.googleapis.com/auth/tasks"]}, "list": {"id": "tasks.tasklists.list", "path": "users/@me/lists", "httpMethod": "GET", "parameters": {"maxResults": {"type": "string", "format": "int64", "location": "query"}, "pageToken": {"type": "string", "location": "query"}}, "response": {"$ref": "TaskLists"}, "scopes": ["https://www.googleapis.com/auth/tasks", "https://www.googleapis.com/auth/tasks.readonly"]}, "patch": {"id": "tasks.tasklists.patch", "path": "users/@me/lists/{tasklist}", "httpMethod": "PATCH", "parameters": {"tasklist": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "TaskList"}, "response": {"$ref": "TaskList"}, "scopes": ["https://www.googleapis.com/auth/tasks"]}, "update": {"id": "tasks.tasklists.update", "path": "users/@me/lists/{tasklist}", "httpMethod": "PUT", "parameters": {"tasklist": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "TaskList"}, "response": {"$ref": "TaskList"}, "scopes": ["https://www.googleapis.com/auth/tasks"]}}}', true)); + $this->tasks = new Google_Service_Tasks_Tasks_Resource($this, $this->serviceName, 'tasks', json_decode('{"methods": {"clear": {"id": "tasks.tasks.clear", "path": "lists/{tasklist}/clear", "httpMethod": "POST", "parameters": {"tasklist": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/tasks"]}, "delete": {"id": "tasks.tasks.delete", "path": "lists/{tasklist}/tasks/{task}", "httpMethod": "DELETE", "parameters": {"task": {"type": "string", "required": true, "location": "path"}, "tasklist": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/tasks"]}, "get": {"id": "tasks.tasks.get", "path": "lists/{tasklist}/tasks/{task}", "httpMethod": "GET", "parameters": {"task": {"type": "string", "required": true, "location": "path"}, "tasklist": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Task"}, "scopes": ["https://www.googleapis.com/auth/tasks", "https://www.googleapis.com/auth/tasks.readonly"]}, "insert": {"id": "tasks.tasks.insert", "path": "lists/{tasklist}/tasks", "httpMethod": "POST", "parameters": {"parent": {"type": "string", "location": "query"}, "previous": {"type": "string", "location": "query"}, "tasklist": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Task"}, "response": {"$ref": "Task"}, "scopes": ["https://www.googleapis.com/auth/tasks"]}, "list": {"id": "tasks.tasks.list", "path": "lists/{tasklist}/tasks", "httpMethod": "GET", "parameters": {"completedMax": {"type": "string", "location": "query"}, "completedMin": {"type": "string", "location": "query"}, "dueMax": {"type": "string", "location": "query"}, "dueMin": {"type": "string", "location": "query"}, "maxResults": {"type": "string", "format": "int64", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "showCompleted": {"type": "boolean", "location": "query"}, "showDeleted": {"type": "boolean", "location": "query"}, "showHidden": {"type": "boolean", "location": "query"}, "tasklist": {"type": "string", "required": true, "location": "path"}, "updatedMin": {"type": "string", "location": "query"}}, "response": {"$ref": "Tasks"}, "scopes": ["https://www.googleapis.com/auth/tasks", "https://www.googleapis.com/auth/tasks.readonly"]}, "move": {"id": "tasks.tasks.move", "path": "lists/{tasklist}/tasks/{task}/move", "httpMethod": "POST", "parameters": {"parent": {"type": "string", "location": "query"}, "previous": {"type": "string", "location": "query"}, "task": {"type": "string", "required": true, "location": "path"}, "tasklist": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Task"}, "scopes": ["https://www.googleapis.com/auth/tasks"]}, "patch": {"id": "tasks.tasks.patch", "path": "lists/{tasklist}/tasks/{task}", "httpMethod": "PATCH", "parameters": {"task": {"type": "string", "required": true, "location": "path"}, "tasklist": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Task"}, "response": {"$ref": "Task"}, "scopes": ["https://www.googleapis.com/auth/tasks"]}, "update": {"id": "tasks.tasks.update", "path": "lists/{tasklist}/tasks/{task}", "httpMethod": "PUT", "parameters": {"task": {"type": "string", "required": true, "location": "path"}, "tasklist": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Task"}, "response": {"$ref": "Task"}, "scopes": ["https://www.googleapis.com/auth/tasks"]}}}', true)); + + } +} + + + /** + * The "tasklists" collection of methods. + * Typical usage is: + *
+ * $tasksService = new Google_TasksService(...);
+ * $tasklists = $tasksService->tasklists;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * Returns the authenticated user's specified task list. (tasklists.get)
+ *
+ * @param string $tasklist Task list identifier.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_Tasks_TaskList
+ */
+ public function get($tasklist, $optParams = array()) {
+ $params = array('tasklist' => $tasklist);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Tasks_TaskList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Tasks_TaskList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Returns all the authenticated user's task lists. (tasklists.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string maxResults Maximum number of task lists returned on one page. Optional. The default is 100.
+ * @opt_param string pageToken Token specifying the result page to return. Optional.
+ * @return Google_Service_Tasks_TaskLists
+ */
+ public function listTasklists($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Tasks_TaskLists($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Tasks_TaskList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Tasks_TaskList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "tasks" collection of methods.
+ * Typical usage is:
+ *
+ * $tasksService = new Google_TasksService(...);
+ * $tasks = $tasksService->tasks;
+ *
+ */
+ 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);
+ $data = $this->__call('clear', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Tasks_Task($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Creates a new task on the specified task list. (tasks.insert)
+ *
+ * @param string $tasklist Task list identifier.
+ * @param Google_Task $postBody
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string parent Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional.
+ * @opt_param string previous Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional.
+ * @return Google_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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Tasks_Task($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Returns all tasks in the specified task list. (tasks.list)
+ *
+ * @param string $tasklist Task list identifier.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string completedMax Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.
+ * @opt_param string completedMin Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.
+ * @opt_param string dueMax Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date.
+ * @opt_param string dueMin Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date.
+ * @opt_param string maxResults Maximum number of task lists returned on one page. Optional. The default is 100.
+ * @opt_param string pageToken Token specifying the result page to return. Optional.
+ * @opt_param bool showCompleted Flag indicating whether completed tasks are returned in the result. Optional. The default is True.
+ * @opt_param bool showDeleted Flag indicating whether deleted tasks are returned in the result. Optional. The default is False.
+ * @opt_param bool showHidden Flag indicating whether hidden tasks are returned in the result. Optional. The default is False.
+ * @opt_param string updatedMin Lower bound for a task's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time.
+ * @return Google_Service_Tasks_Tasks
+ */
+ public function listTasks($tasklist, $optParams = array()) {
+ $params = array('tasklist' => $tasklist);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Tasks_Tasks($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Moves the specified task to another position in the task list. This can include putting it as a
+ * child task under a new parent and/or move it to a different position among its sibling tasks.
+ * (tasks.move)
+ *
+ * @param string $tasklist Task list identifier.
+ * @param string $task Task identifier.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string parent New parent task identifier. If the task is moved to the top level, this parameter is omitted. Optional.
+ * @opt_param string previous New previous sibling task identifier. If the task is moved to the first position among its siblings, this parameter is omitted. Optional.
+ * @return Google_Service_Tasks_Task
+ */
+ public function move($tasklist, $task, $optParams = array()) {
+ $params = array('tasklist' => $tasklist, 'task' => $task);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('move', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Tasks_Task($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('patch', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Tasks_Task($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Tasks_Task($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+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 $links;
+ public $notes;
+ public $parent;
+ public $position;
+ public $selfLink;
+ public $status;
+ public $title;
+ public $updated;
+ public function setCompleted($completed) {
+ $this->completed = $completed;
+ }
+ public function getCompleted() {
+ return $this->completed;
+ }
+ public function setDeleted($deleted) {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted() {
+ return $this->deleted;
+ }
+ public function setDue($due) {
+ $this->due = $due;
+ }
+ public function getDue() {
+ return $this->due;
+ }
+ public function setEtag($etag) {
+ $this->etag = $etag;
+ }
+ public function getEtag() {
+ return $this->etag;
+ }
+ public function setHidden($hidden) {
+ $this->hidden = $hidden;
+ }
+ public function getHidden() {
+ return $this->hidden;
+ }
+ 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 setLinks($links) {
+ $this->links = $links;
+ }
+ public function getLinks() {
+ return $this->links;
+ }
+ public function setNotes($notes) {
+ $this->notes = $notes;
+ }
+ public function getNotes() {
+ return $this->notes;
+ }
+ public function setParent($parent) {
+ $this->parent = $parent;
+ }
+ public function getParent() {
+ return $this->parent;
+ }
+ public function setPosition($position) {
+ $this->position = $position;
+ }
+ public function getPosition() {
+ return $this->position;
+ }
+ 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 setTitle($title) {
+ $this->title = $title;
+ }
+ public function getTitle() {
+ return $this->title;
+ }
+ public function setUpdated($updated) {
+ $this->updated = $updated;
+ }
+ public function getUpdated() {
+ return $this->updated;
+ }
+}
+
+class Google_Service_Tasks_TaskLinks
+ extends Google_Model {
+ public $description;
+ public $link;
+ public $type;
+ public function setDescription($description) {
+ $this->description = $description;
+ }
+ public function getDescription() {
+ return $this->description;
+ }
+ public function setLink($link) {
+ $this->link = $link;
+ }
+ public function getLink() {
+ return $this->link;
+ }
+ public function setType($type) {
+ $this->type = $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;
+ 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 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;
+ }
+}
+
+class Google_Service_Tasks_TaskLists
+ extends Google_Collection {
+ public $etag;
+ protected $__itemsType = 'Google_Service_Tasks_TaskList';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+}
diff --git a/src/Google/Service/Translate.php b/src/Google/Service/Translate.php
new file mode 100644
index 0000000..9fa0627
--- /dev/null
+++ b/src/Google/Service/Translate.php
@@ -0,0 +1,250 @@
+
+ * Lets you translate text from one language to another
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Translate extends Google_Service { + public $detections; + public $languages; + public $translations; + /** + * Constructs the internal representation of the Translate service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'language/translate/'; + $this->version = 'v2'; + $this->serviceName = 'translate'; + + $client->addService($this->serviceName, $this->version); + $this->detections = new Google_Service_Translate_Detections_Resource($this, $this->serviceName, 'detections', json_decode('{"methods": {"list": {"id": "language.detections.list", "path": "v2/detect", "httpMethod": "GET", "parameters": {"q": {"type": "string", "required": true, "repeated": true, "location": "query"}}, "response": {"$ref": "DetectionsListResponse"}}}}', true)); + $this->languages = new Google_Service_Translate_Languages_Resource($this, $this->serviceName, 'languages', json_decode('{"methods": {"list": {"id": "language.languages.list", "path": "v2/languages", "httpMethod": "GET", "parameters": {"target": {"type": "string", "location": "query"}}, "response": {"$ref": "LanguagesListResponse"}}}}', true)); + $this->translations = new Google_Service_Translate_Translations_Resource($this, $this->serviceName, 'translations', json_decode('{"methods": {"list": {"id": "language.translations.list", "path": "v2", "httpMethod": "GET", "parameters": {"cid": {"type": "string", "repeated": true, "location": "query"}, "format": {"type": "string", "enum": ["html", "text"], "location": "query"}, "q": {"type": "string", "required": true, "repeated": true, "location": "query"}, "source": {"type": "string", "location": "query"}, "target": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "TranslationsListResponse"}}}}', true)); + + } +} + + + /** + * The "detections" collection of methods. + * Typical usage is: + *
+ * $translateService = new Google_TranslateService(...);
+ * $detections = $translateService->detections;
+ *
+ */
+ class Google_Service_Translate_Detections_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Detect the language of text. (detections.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Translate_DetectionsListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "languages" collection of methods.
+ * Typical usage is:
+ *
+ * $translateService = new Google_TranslateService(...);
+ * $languages = $translateService->languages;
+ *
+ */
+ class Google_Service_Translate_Languages_Resource extends Google_Service_Resource {
+
+
+ /**
+ * List the source/target languages supported by the API (languages.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Translate_LanguagesListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "translations" collection of methods.
+ * Typical usage is:
+ *
+ * $translateService = new Google_TranslateService(...);
+ * $translations = $translateService->translations;
+ *
+ */
+ class Google_Service_Translate_Translations_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Returns text translations from one language to another. (translations.list)
+ *
+ * @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 cid The customization id for translate
+ * @opt_param string format The format of the text
+ * @opt_param string source The source language of the text
+ * @return Google_Service_Translate_TranslationsListResponse
+ */
+ public function listTranslations($q, $target, $optParams = array()) {
+ $params = array('q' => $q, 'target' => $target);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Translate_TranslationsListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Translate_DetectionsListResponse
+ extends Google_Collection {
+ protected $__detectionsType = 'Google_Service_Translate_DetectionsResourceItems';
+ protected $__detectionsDataType = 'array';
+ public $detections;
+ public function setDetections($detections) {
+ $this->detections = $detections;
+ }
+ public function getDetections() {
+ return $this->detections;
+ }
+}
+
+class Google_Service_Translate_DetectionsResourceItems
+ extends Google_Model {
+ public $confidence;
+ public $isReliable;
+ public $language;
+ public function setConfidence($confidence) {
+ $this->confidence = $confidence;
+ }
+ public function getConfidence() {
+ return $this->confidence;
+ }
+ public function setIsReliable($isReliable) {
+ $this->isReliable = $isReliable;
+ }
+ public function getIsReliable() {
+ return $this->isReliable;
+ }
+ public function setLanguage($language) {
+ $this->language = $language;
+ }
+ public function getLanguage() {
+ return $this->language;
+ }
+}
+
+class Google_Service_Translate_LanguagesListResponse
+ extends Google_Collection {
+ protected $__languagesType = 'Google_Service_Translate_LanguagesResource';
+ protected $__languagesDataType = 'array';
+ public $languages;
+ public function setLanguages($languages) {
+ $this->languages = $languages;
+ }
+ public function getLanguages() {
+ return $this->languages;
+ }
+}
+
+class Google_Service_Translate_LanguagesResource
+ extends Google_Model {
+ public $language;
+ public $name;
+ public function setLanguage($language) {
+ $this->language = $language;
+ }
+ public function getLanguage() {
+ return $this->language;
+ }
+ public function setName($name) {
+ $this->name = $name;
+ }
+ public function getName() {
+ return $this->name;
+ }
+}
+
+class Google_Service_Translate_TranslationsListResponse
+ extends Google_Collection {
+ protected $__translationsType = 'Google_Service_Translate_TranslationsResource';
+ protected $__translationsDataType = 'array';
+ public $translations;
+ public function setTranslations($translations) {
+ $this->translations = $translations;
+ }
+ public function getTranslations() {
+ return $this->translations;
+ }
+}
+
+class Google_Service_Translate_TranslationsResource
+ extends Google_Model {
+ public $detectedSourceLanguage;
+ public $translatedText;
+ public function setDetectedSourceLanguage($detectedSourceLanguage) {
+ $this->detectedSourceLanguage = $detectedSourceLanguage;
+ }
+ public function getDetectedSourceLanguage() {
+ return $this->detectedSourceLanguage;
+ }
+ public function setTranslatedText($translatedText) {
+ $this->translatedText = $translatedText;
+ }
+ public function getTranslatedText() {
+ return $this->translatedText;
+ }
+}
diff --git a/src/Google/Service/Urlshortener.php b/src/Google/Service/Urlshortener.php
new file mode 100644
index 0000000..73f67dd
--- /dev/null
+++ b/src/Google/Service/Urlshortener.php
@@ -0,0 +1,328 @@
+
+ * Lets you create, inspect, and manage goo.gl short URLs
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Urlshortener extends Google_Service { + public $url; + /** + * Constructs the internal representation of the Urlshortener service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'urlshortener/v1/'; + $this->version = 'v1'; + $this->serviceName = 'urlshortener'; + + $client->addService($this->serviceName, $this->version); + $this->url = new Google_Service_Urlshortener_Url_Resource($this, $this->serviceName, 'url', json_decode('{"methods": {"get": {"id": "urlshortener.url.get", "path": "url", "httpMethod": "GET", "parameters": {"projection": {"type": "string", "enum": ["ANALYTICS_CLICKS", "ANALYTICS_TOP_STRINGS", "FULL"], "location": "query"}, "shortUrl": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "Url"}}, "insert": {"id": "urlshortener.url.insert", "path": "url", "httpMethod": "POST", "request": {"$ref": "Url"}, "response": {"$ref": "Url"}, "scopes": ["https://www.googleapis.com/auth/urlshortener"]}, "list": {"id": "urlshortener.url.list", "path": "url/history", "httpMethod": "GET", "parameters": {"projection": {"type": "string", "enum": ["ANALYTICS_CLICKS", "FULL"], "location": "query"}, "start-token": {"type": "string", "location": "query"}}, "response": {"$ref": "UrlHistory"}, "scopes": ["https://www.googleapis.com/auth/urlshortener"]}}}', true)); + + } +} + + + /** + * The "url" collection of methods. + * Typical usage is: + *
+ * $urlshortenerService = new Google_UrlshortenerService(...);
+ * $url = $urlshortenerService->url;
+ *
+ */
+ 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);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Urlshortener_Url($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Urlshortener_Url($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Retrieves a list of URLs shortened by a user. (url.list)
+ *
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string projection Additional information to return.
+ * @opt_param string start-token Token for requesting successive pages of results.
+ * @return Google_Service_Urlshortener_UrlHistory
+ */
+ public function listUrl($optParams = array()) {
+ $params = array();
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Urlshortener_UrlHistory($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Urlshortener_AnalyticsSnapshot
+ extends Google_Collection {
+ protected $__browsersType = 'Google_Service_Urlshortener_StringCount';
+ protected $__browsersDataType = 'array';
+ public $browsers;
+ protected $__countriesType = 'Google_Service_Urlshortener_StringCount';
+ protected $__countriesDataType = 'array';
+ public $countries;
+ public $longUrlClicks;
+ protected $__platformsType = 'Google_Service_Urlshortener_StringCount';
+ protected $__platformsDataType = 'array';
+ public $platforms;
+ protected $__referrersType = 'Google_Service_Urlshortener_StringCount';
+ protected $__referrersDataType = 'array';
+ public $referrers;
+ public $shortUrlClicks;
+ public function setBrowsers($browsers) {
+ $this->browsers = $browsers;
+ }
+ public function getBrowsers() {
+ return $this->browsers;
+ }
+ public function setCountries($countries) {
+ $this->countries = $countries;
+ }
+ public function getCountries() {
+ return $this->countries;
+ }
+ public function setLongUrlClicks($longUrlClicks) {
+ $this->longUrlClicks = $longUrlClicks;
+ }
+ public function getLongUrlClicks() {
+ return $this->longUrlClicks;
+ }
+ public function setPlatforms($platforms) {
+ $this->platforms = $platforms;
+ }
+ public function getPlatforms() {
+ return $this->platforms;
+ }
+ public function setReferrers($referrers) {
+ $this->referrers = $referrers;
+ }
+ public function getReferrers() {
+ return $this->referrers;
+ }
+ public function setShortUrlClicks($shortUrlClicks) {
+ $this->shortUrlClicks = $shortUrlClicks;
+ }
+ public function getShortUrlClicks() {
+ return $this->shortUrlClicks;
+ }
+}
+
+class Google_Service_Urlshortener_AnalyticsSummary
+ extends Google_Model {
+ protected $__allTimeType = 'Google_Service_Urlshortener_AnalyticsSnapshot';
+ protected $__allTimeDataType = '';
+ public $allTime;
+ protected $__dayType = 'Google_Service_Urlshortener_AnalyticsSnapshot';
+ protected $__dayDataType = '';
+ public $day;
+ protected $__monthType = 'Google_Service_Urlshortener_AnalyticsSnapshot';
+ protected $__monthDataType = '';
+ public $month;
+ protected $__twoHoursType = 'Google_Service_Urlshortener_AnalyticsSnapshot';
+ protected $__twoHoursDataType = '';
+ public $twoHours;
+ protected $__weekType = 'Google_Service_Urlshortener_AnalyticsSnapshot';
+ protected $__weekDataType = '';
+ public $week;
+ public function setAllTime(Google_Service_Urlshortener_AnalyticsSnapshot$allTime) {
+ $this->allTime = $allTime;
+ }
+ public function getAllTime() {
+ return $this->allTime;
+ }
+ public function setDay(Google_Service_Urlshortener_AnalyticsSnapshot$day) {
+ $this->day = $day;
+ }
+ public function getDay() {
+ return $this->day;
+ }
+ public function setMonth(Google_Service_Urlshortener_AnalyticsSnapshot$month) {
+ $this->month = $month;
+ }
+ public function getMonth() {
+ return $this->month;
+ }
+ public function setTwoHours(Google_Service_Urlshortener_AnalyticsSnapshot$twoHours) {
+ $this->twoHours = $twoHours;
+ }
+ public function getTwoHours() {
+ return $this->twoHours;
+ }
+ public function setWeek(Google_Service_Urlshortener_AnalyticsSnapshot$week) {
+ $this->week = $week;
+ }
+ public function getWeek() {
+ return $this->week;
+ }
+}
+
+class Google_Service_Urlshortener_StringCount
+ extends Google_Model {
+ public $count;
+ public $id;
+ public function setCount($count) {
+ $this->count = $count;
+ }
+ public function getCount() {
+ return $this->count;
+ }
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+}
+
+class Google_Service_Urlshortener_Url
+ extends Google_Model {
+ protected $__analyticsType = 'Google_Service_Urlshortener_AnalyticsSummary';
+ protected $__analyticsDataType = '';
+ public $analytics;
+ public $created;
+ public $id;
+ public $kind;
+ public $longUrl;
+ public $status;
+ public function setAnalytics(Google_Service_Urlshortener_AnalyticsSummary$analytics) {
+ $this->analytics = $analytics;
+ }
+ public function getAnalytics() {
+ return $this->analytics;
+ }
+ 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 setLongUrl($longUrl) {
+ $this->longUrl = $longUrl;
+ }
+ public function getLongUrl() {
+ return $this->longUrl;
+ }
+ public function setStatus($status) {
+ $this->status = $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 $items;
+ public $itemsPerPage;
+ public $kind;
+ public $nextPageToken;
+ public $totalItems;
+ 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 setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+ public function setTotalItems($totalItems) {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems() {
+ return $this->totalItems;
+ }
+}
diff --git a/src/Google/Service/Webfonts.php b/src/Google/Service/Webfonts.php
new file mode 100644
index 0000000..5ae4228
--- /dev/null
+++ b/src/Google/Service/Webfonts.php
@@ -0,0 +1,154 @@
+
+ * The Google Fonts Developer API.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_Webfonts extends Google_Service { + public $webfonts; + /** + * Constructs the internal representation of the Webfonts service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'webfonts/v1/'; + $this->version = 'v1'; + $this->serviceName = 'webfonts'; + + $client->addService($this->serviceName, $this->version); + $this->webfonts = new Google_Service_Webfonts_Webfonts_Resource($this, $this->serviceName, 'webfonts', json_decode('{"methods": {"list": {"id": "webfonts.webfonts.list", "path": "webfonts", "httpMethod": "GET", "parameters": {"sort": {"type": "string", "enum": ["alpha", "date", "popularity", "style", "trending"], "location": "query"}}, "response": {"$ref": "WebfontList"}}}}', true)); + + } +} + + + /** + * The "webfonts" collection of methods. + * Typical usage is: + *
+ * $webfontsService = new Google_WebfontsService(...);
+ * $webfonts = $webfontsService->webfonts;
+ *
+ */
+ class Google_Service_Webfonts_Webfonts_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Retrieves the list of fonts currently served by the Google Fonts Developer API (webfonts.list)
+ *
+ * @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);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_Webfonts_WebfontList($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_Webfonts_Webfont
+ extends Google_Collection {
+ public $family;
+ public $files;
+ public $kind;
+ public $lastModified;
+ public $subsets;
+ public $variants;
+ public $version;
+ public function setFamily($family) {
+ $this->family = $family;
+ }
+ public function getFamily() {
+ return $this->family;
+ }
+ public function setFiles($files) {
+ $this->files = $files;
+ }
+ public function getFiles() {
+ return $this->files;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setLastModified($lastModified) {
+ $this->lastModified = $lastModified;
+ }
+ public function getLastModified() {
+ return $this->lastModified;
+ }
+ public function setSubsets($subsets) {
+ $this->subsets = $subsets;
+ }
+ public function getSubsets() {
+ return $this->subsets;
+ }
+ public function setVariants($variants) {
+ $this->variants = $variants;
+ }
+ public function getVariants() {
+ return $this->variants;
+ }
+ public function setVersion($version) {
+ $this->version = $version;
+ }
+ public function getVersion() {
+ return $this->version;
+ }
+}
+
+class Google_Service_Webfonts_WebfontList
+ extends Google_Collection {
+ protected $__itemsType = 'Google_Service_Webfonts_Webfont';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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;
+ }
+}
diff --git a/src/Google/Service/YouTube.php b/src/Google/Service/YouTube.php
new file mode 100644
index 0000000..bb6c497
--- /dev/null
+++ b/src/Google/Service/YouTube.php
@@ -0,0 +1,4919 @@
+
+ * Programmatic access to YouTube features.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_YouTube extends Google_Service { + public $activities; + public $channels; + public $guideCategories; + public $liveBroadcasts; + public $liveStreams; + public $playlistItems; + public $playlists; + public $search; + public $subscriptions; + public $thumbnails; + public $videoCategories; + public $videos; + /** + * Constructs the internal representation of the YouTube service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'youtube/v3/'; + $this->version = 'v3'; + $this->serviceName = 'youtube'; + + $client->addService($this->serviceName, $this->version); + $this->activities = new Google_Service_YouTube_Activities_Resource($this, $this->serviceName, 'activities', json_decode('{"methods": {"insert": {"id": "youtube.activities.insert", "path": "activities", "httpMethod": "POST", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "Activity"}, "response": {"$ref": "Activity"}, "scopes": ["https://www.googleapis.com/auth/youtube"]}, "list": {"id": "youtube.activities.list", "path": "activities", "httpMethod": "GET", "parameters": {"channelId": {"type": "string", "location": "query"}, "home": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "5", "format": "uint32", "minimum": "0", "maximum": "50", "location": "query"}, "mine": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}, "publishedAfter": {"type": "string", "format": "date-time", "location": "query"}, "publishedBefore": {"type": "string", "format": "date-time", "location": "query"}}, "response": {"$ref": "ActivityListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly"]}}}', true)); + $this->channels = new Google_Service_YouTube_Channels_Resource($this, $this->serviceName, 'channels', json_decode('{"methods": {"list": {"id": "youtube.channels.list", "path": "channels", "httpMethod": "GET", "parameters": {"categoryId": {"type": "string", "location": "query"}, "id": {"type": "string", "location": "query"}, "managedByMe": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "default": "5", "format": "uint32", "minimum": "0", "maximum": "50", "location": "query"}, "mine": {"type": "boolean", "location": "query"}, "mySubscribers": {"type": "string", "location": "query"}, "onBehalfOfContentOwner": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "ChannelListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"]}, "update": {"id": "youtube.channels.update", "path": "channels", "httpMethod": "PUT", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "Channel"}, "response": {"$ref": "Channel"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}}}', true)); + $this->guideCategories = new Google_Service_YouTube_GuideCategories_Resource($this, $this->serviceName, 'guideCategories', json_decode('{"methods": {"list": {"id": "youtube.guideCategories.list", "path": "guideCategories", "httpMethod": "GET", "parameters": {"hl": {"type": "string", "default": "en-US", "location": "query"}, "id": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}, "regionCode": {"type": "string", "location": "query"}}, "response": {"$ref": "GuideCategoryListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"]}}}', true)); + $this->liveBroadcasts = new Google_Service_YouTube_LiveBroadcasts_Resource($this, $this->serviceName, 'liveBroadcasts', json_decode('{"methods": {"bind": {"id": "youtube.liveBroadcasts.bind", "path": "liveBroadcasts/bind", "httpMethod": "POST", "parameters": {"id": {"type": "string", "required": true, "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}, "streamId": {"type": "string", "location": "query"}}, "response": {"$ref": "LiveBroadcast"}, "scopes": ["https://www.googleapis.com/auth/youtube"]}, "control": {"id": "youtube.liveBroadcasts.control", "path": "liveBroadcasts/control", "httpMethod": "POST", "parameters": {"displaySlate": {"type": "boolean", "location": "query"}, "id": {"type": "string", "required": true, "location": "query"}, "offsetTimeMs": {"type": "string", "format": "uint64", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "LiveBroadcast"}, "scopes": ["https://www.googleapis.com/auth/youtube"]}, "delete": {"id": "youtube.liveBroadcasts.delete", "path": "liveBroadcasts", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/youtube"]}, "insert": {"id": "youtube.liveBroadcasts.insert", "path": "liveBroadcasts", "httpMethod": "POST", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "LiveBroadcast"}, "response": {"$ref": "LiveBroadcast"}, "scopes": ["https://www.googleapis.com/auth/youtube"]}, "list": {"id": "youtube.liveBroadcasts.list", "path": "liveBroadcasts", "httpMethod": "GET", "parameters": {"broadcastStatus": {"type": "string", "enum": ["active", "all", "completed", "upcoming"], "location": "query"}, "id": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "5", "format": "uint32", "minimum": "0", "maximum": "50", "location": "query"}, "mine": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "LiveBroadcastList"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly"]}, "transition": {"id": "youtube.liveBroadcasts.transition", "path": "liveBroadcasts/transition", "httpMethod": "POST", "parameters": {"broadcastStatus": {"type": "string", "required": true, "enum": ["complete", "live", "testing"], "location": "query"}, "id": {"type": "string", "required": true, "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "LiveBroadcast"}, "scopes": ["https://www.googleapis.com/auth/youtube"]}, "update": {"id": "youtube.liveBroadcasts.update", "path": "liveBroadcasts", "httpMethod": "PUT", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "LiveBroadcast"}, "response": {"$ref": "LiveBroadcast"}, "scopes": ["https://www.googleapis.com/auth/youtube"]}}}', true)); + $this->liveStreams = new Google_Service_YouTube_LiveStreams_Resource($this, $this->serviceName, 'liveStreams', json_decode('{"methods": {"delete": {"id": "youtube.liveStreams.delete", "path": "liveStreams", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/youtube"]}, "insert": {"id": "youtube.liveStreams.insert", "path": "liveStreams", "httpMethod": "POST", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "LiveStream"}, "response": {"$ref": "LiveStream"}, "scopes": ["https://www.googleapis.com/auth/youtube"]}, "list": {"id": "youtube.liveStreams.list", "path": "liveStreams", "httpMethod": "GET", "parameters": {"id": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "5", "format": "uint32", "minimum": "0", "maximum": "50", "location": "query"}, "mine": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "LiveStreamList"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly"]}, "update": {"id": "youtube.liveStreams.update", "path": "liveStreams", "httpMethod": "PUT", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "LiveStream"}, "response": {"$ref": "LiveStream"}, "scopes": ["https://www.googleapis.com/auth/youtube"]}}}', true)); + $this->playlistItems = new Google_Service_YouTube_PlaylistItems_Resource($this, $this->serviceName, 'playlistItems', json_decode('{"methods": {"delete": {"id": "youtube.playlistItems.delete", "path": "playlistItems", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}, "insert": {"id": "youtube.playlistItems.insert", "path": "playlistItems", "httpMethod": "POST", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "PlaylistItem"}, "response": {"$ref": "PlaylistItem"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}, "list": {"id": "youtube.playlistItems.list", "path": "playlistItems", "httpMethod": "GET", "parameters": {"id": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "5", "format": "uint32", "minimum": "0", "maximum": "50", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}, "playlistId": {"type": "string", "location": "query"}, "videoId": {"type": "string", "location": "query"}}, "response": {"$ref": "PlaylistItemListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"], "supportsSubscription": true}, "update": {"id": "youtube.playlistItems.update", "path": "playlistItems", "httpMethod": "PUT", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "PlaylistItem"}, "response": {"$ref": "PlaylistItem"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}}}', true)); + $this->playlists = new Google_Service_YouTube_Playlists_Resource($this, $this->serviceName, 'playlists', json_decode('{"methods": {"delete": {"id": "youtube.playlists.delete", "path": "playlists", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}, "insert": {"id": "youtube.playlists.insert", "path": "playlists", "httpMethod": "POST", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "Playlist"}, "response": {"$ref": "Playlist"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}, "list": {"id": "youtube.playlists.list", "path": "playlists", "httpMethod": "GET", "parameters": {"channelId": {"type": "string", "location": "query"}, "id": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "5", "format": "uint32", "minimum": "0", "maximum": "50", "location": "query"}, "mine": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "PlaylistListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"]}, "update": {"id": "youtube.playlists.update", "path": "playlists", "httpMethod": "PUT", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "Playlist"}, "response": {"$ref": "Playlist"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}}}', true)); + $this->search = new Google_Service_YouTube_Search_Resource($this, $this->serviceName, 'search', json_decode('{"methods": {"list": {"id": "youtube.search.list", "path": "search", "httpMethod": "GET", "parameters": {"channelId": {"type": "string", "location": "query"}, "channelType": {"type": "string", "enum": ["any", "show"], "location": "query"}, "forContentOwner": {"type": "boolean", "location": "query"}, "forMine": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "default": "5", "format": "uint32", "minimum": "0", "maximum": "50", "location": "query"}, "onBehalfOfContentOwner": {"type": "string", "location": "query"}, "order": {"type": "string", "default": "SEARCH_SORT_RELEVANCE", "enum": ["date", "rating", "relevance", "title", "videoCount", "viewCount"], "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}, "publishedAfter": {"type": "string", "format": "date-time", "location": "query"}, "publishedBefore": {"type": "string", "format": "date-time", "location": "query"}, "q": {"type": "string", "location": "query"}, "regionCode": {"type": "string", "location": "query"}, "relatedToVideoId": {"type": "string", "location": "query"}, "safeSearch": {"type": "string", "enum": ["moderate", "none", "strict"], "location": "query"}, "topicId": {"type": "string", "location": "query"}, "type": {"type": "string", "default": "video,channel,playlist", "location": "query"}, "videoCaption": {"type": "string", "enum": ["any", "closedCaption", "none"], "location": "query"}, "videoCategoryId": {"type": "string", "location": "query"}, "videoDefinition": {"type": "string", "enum": ["any", "high", "standard"], "location": "query"}, "videoDimension": {"type": "string", "enum": ["2d", "3d", "any"], "location": "query"}, "videoDuration": {"type": "string", "enum": ["any", "long", "medium", "short"], "location": "query"}, "videoEmbeddable": {"type": "string", "enum": ["any", "true"], "location": "query"}, "videoLicense": {"type": "string", "enum": ["any", "creativeCommon", "youtube"], "location": "query"}, "videoSyndicated": {"type": "string", "enum": ["any", "true"], "location": "query"}, "videoType": {"type": "string", "enum": ["any", "episode", "movie"], "location": "query"}}, "response": {"$ref": "SearchListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"]}}}', true)); + $this->subscriptions = new Google_Service_YouTube_Subscriptions_Resource($this, $this->serviceName, 'subscriptions', json_decode('{"methods": {"delete": {"id": "youtube.subscriptions.delete", "path": "subscriptions", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}, "insert": {"id": "youtube.subscriptions.insert", "path": "subscriptions", "httpMethod": "POST", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "Subscription"}, "response": {"$ref": "Subscription"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}, "list": {"id": "youtube.subscriptions.list", "path": "subscriptions", "httpMethod": "GET", "parameters": {"channelId": {"type": "string", "location": "query"}, "forChannelId": {"type": "string", "location": "query"}, "id": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "default": "5", "format": "uint32", "minimum": "0", "maximum": "50", "location": "query"}, "mine": {"type": "boolean", "location": "query"}, "mySubscribers": {"type": "boolean", "location": "query"}, "order": {"type": "string", "default": "SUBSCRIPTION_ORDER_RELEVANCE", "enum": ["alphabetical", "relevance", "unread"], "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "SubscriptionListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"]}}}', true)); + $this->thumbnails = new Google_Service_YouTube_Thumbnails_Resource($this, $this->serviceName, 'thumbnails', json_decode('{"methods": {"set": {"id": "youtube.thumbnails.set", "path": "thumbnails/set", "httpMethod": "POST", "parameters": {"videoId": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "ThumbnailListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.upload", "https://www.googleapis.com/auth/youtubepartner"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["application/octet-stream", "image/jpeg", "image/png"], "maxSize": "2MB", "protocols": {"simple": {"multipart": true, "path": "/upload/youtube/v3/thumbnails/set"}, "resumable": {"multipart": true, "path": "/resumable/upload/youtube/v3/thumbnails/set"}}}}}}', true)); + $this->videoCategories = new Google_Service_YouTube_VideoCategories_Resource($this, $this->serviceName, 'videoCategories', json_decode('{"methods": {"list": {"id": "youtube.videoCategories.list", "path": "videoCategories", "httpMethod": "GET", "parameters": {"hl": {"type": "string", "default": "en_US", "location": "query"}, "id": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}, "regionCode": {"type": "string", "location": "query"}}, "response": {"$ref": "VideoCategoryListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"]}}}', true)); + $this->videos = new Google_Service_YouTube_Videos_Resource($this, $this->serviceName, 'videos', json_decode('{"methods": {"delete": {"id": "youtube.videos.delete", "path": "videos", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}, "getRating": {"id": "youtube.videos.getRating", "path": "videos/getRating", "httpMethod": "GET", "parameters": {"id": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "VideoGetRatingResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}, "insert": {"id": "youtube.videos.insert", "path": "videos", "httpMethod": "POST", "parameters": {"autoLevels": {"type": "boolean", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}, "stabilize": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Video"}, "response": {"$ref": "Video"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.upload", "https://www.googleapis.com/auth/youtubepartner"], "supportsMediaUpload": true, "mediaUpload": {"accept": ["application/octet-stream", "video/*"], "maxSize": "64GB", "protocols": {"simple": {"multipart": true, "path": "/upload/youtube/v3/videos"}, "resumable": {"multipart": true, "path": "/resumable/upload/youtube/v3/videos"}}}}, "list": {"id": "youtube.videos.list", "path": "videos", "httpMethod": "GET", "parameters": {"id": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "uint32", "minimum": "1", "maximum": "50", "location": "query"}, "myRating": {"type": "string", "enum": ["dislike", "like"], "location": "query"}, "onBehalfOfContentOwner": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "part": {"type": "string", "required": true, "location": "query"}}, "response": {"$ref": "VideoListResponse"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtubepartner"]}, "rate": {"id": "youtube.videos.rate", "path": "videos/rate", "httpMethod": "POST", "parameters": {"id": {"type": "string", "required": true, "location": "query"}, "rating": {"type": "string", "required": true, "enum": ["dislike", "like", "none"], "location": "query"}}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}, "update": {"id": "youtube.videos.update", "path": "videos", "httpMethod": "PUT", "parameters": {"part": {"type": "string", "required": true, "location": "query"}}, "request": {"$ref": "Video"}, "response": {"$ref": "Video"}, "scopes": ["https://www.googleapis.com/auth/youtube", "https://www.googleapis.com/auth/youtubepartner"]}}}', true)); + + } +} + + + /** + * The "activities" collection of methods. + * Typical usage is: + *
+ * $youtubeService = new Google_YouTubeService(...);
+ * $activities = $youtubeService->activities;
+ *
+ */
+ 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.) (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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_Activity($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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.list)
+ *
+ * @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 channelId The channelId parameter specifies a unique YouTube channel ID. The API will then return a list of that channel's activities.
+ * @opt_param string 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 maxResults USE_DESCRIPTION --- channels:list:maxResults
+ * @opt_param bool mine Set this parameter's value to true to retrieve a feed of the authenticated user's activities.
+ * @opt_param string pageToken USE_DESCRIPTION --- channels:list:pageToken
+ * @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.
+ * @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.
+ * @return Google_Service_YouTube_ActivityListResponse
+ */
+ public function listActivities($part, $optParams = array()) {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_ActivityListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "channels" collection of methods.
+ * Typical usage is:
+ *
+ * $youtubeService = new Google_YouTubeService(...);
+ * $channels = $youtubeService->channels;
+ *
+ */
+ 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.list)
+ *
+ * @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 string categoryId The categoryId parameter specifies a YouTube guide category, thereby requesting YouTube channels associated with that category.
+ * @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 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 maxResults The maxResults parameter specifies the maximum number of items that should be returned in the result set.
+ * @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 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 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 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.
+ * @return Google_Service_YouTube_ChannelListResponse
+ */
+ public function listChannels($part, $optParams = array()) {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_ChannelListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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.
+ * @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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_Channel($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "guideCategories" collection of methods.
+ * Typical usage is:
+ *
+ * $youtubeService = new Google_YouTubeService(...);
+ * $guideCategories = $youtubeService->guideCategories;
+ *
+ */
+ class Google_Service_YouTube_GuideCategories_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Returns a list of categories that can be associated with YouTube channels. (guideCategories.list)
+ *
+ * @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 hl The hl parameter specifies the language that will be used for text values in the API response.
+ * @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 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.
+ * @return Google_Service_YouTube_GuideCategoryListResponse
+ */
+ public function listGuideCategories($part, $optParams = array()) {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_GuideCategoryListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "liveBroadcasts" collection of methods.
+ * Typical usage is:
+ *
+ * $youtubeService = new Google_YouTubeService(...);
+ * $liveBroadcasts = $youtubeService->liveBroadcasts;
+ *
+ */
+ 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 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);
+ $data = $this->__call('bind', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_LiveBroadcast($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Control the slate of the broadacast. (liveBroadcasts.control)
+ *
+ * @param string $id The id parameter specifies the YouTube live broadcast ID for the resource that is being deleted.
+ * @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 bool displaySlate The displaySlate parameter specifies whether to enable or disable the slate.
+ * @opt_param string offsetTimeMs The offsetTimeMs parameter specifies a point in time in the video when the specified action (e.g. display a slate) is executed. The property value identifies a positive time offset, in milliseconds, from the beginning of the monitor stream. Though measured in milliseconds, the value is actually an approximation, and YouTube will act as closely as possible to that time. If not specified, it indicates that the action should be performed as soon as possible. If your broadcast stream is not delayed, then it should not be specified. However, if your broadcast stream is delayed, then the parameter can specify the time when the operation should be executed. See the Getting started guide for more details. Note: The offset is measured from the time that the testing phase began.
+ * @return Google_Service_YouTube_LiveBroadcast
+ */
+ public function control($id, $part, $optParams = array()) {
+ $params = array('id' => $id, 'part' => $part);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('control', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_LiveBroadcast($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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.
+ */
+ public function delete($id, $optParams = array()) {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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.
+ * @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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_LiveBroadcast($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Returns a list of YouTube broadcasts that match the API request parameters. (liveBroadcasts.list)
+ *
+ * @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 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.
+ * @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 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 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.
+ * @return Google_Service_YouTube_LiveBroadcastList
+ */
+ public function listLiveBroadcasts($part, $optParams = array()) {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_LiveBroadcastList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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. (liveBroadcasts.transition)
+ *
+ * @param string $broadcastStatus The broadcastStatus parameter identifies the state to which the broadcast is changing.
+ * @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.
+ * @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);
+ $data = $this->__call('transition', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_LiveBroadcast($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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.
+ * @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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_LiveBroadcast($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "liveStreams" collection of methods.
+ * Typical usage is:
+ *
+ * $youtubeService = new Google_YouTubeService(...);
+ * $liveStreams = $youtubeService->liveStreams;
+ *
+ */
+ 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.
+ */
+ public function delete($id, $optParams = array()) {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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.
+ * @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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_LiveStream($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Returns a list of video streams that match the API request parameters. (liveStreams.list)
+ *
+ * @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 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.
+ * @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 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 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.
+ * @return Google_Service_YouTube_LiveStreamList
+ */
+ public function listLiveStreams($part, $optParams = array()) {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_LiveStreamList($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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.
+ * @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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_LiveStream($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "playlistItems" collection of methods.
+ * Typical usage is:
+ *
+ * $youtubeService = new Google_YouTubeService(...);
+ * $playlistItems = $youtubeService->playlistItems;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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 and contentDetails.
+ * @param Google_PlaylistItem $postBody
+ * @param array $optParams Optional parameters.
+ * @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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_PlaylistItem($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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.list)
+ *
+ * @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, 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 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 id The id parameter specifies a comma-separated list of one or more unique playlist item IDs.
+ * @opt_param string maxResults USE_DESCRIPTION --- channels:list:maxResults
+ * @opt_param string pageToken USE_DESCRIPTION --- channels:list:pageToken
+ * @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.
+ * @return Google_Service_YouTube_PlaylistItemListResponse
+ */
+ public function listPlaylistItems($part, $optParams = array()) {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_PlaylistItemListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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 and contentDetails.
+ 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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_PlaylistItem($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "playlists" collection of methods.
+ * Typical usage is:
+ *
+ * $youtubeService = new Google_YouTubeService(...);
+ * $playlists = $youtubeService->playlists;
+ *
+ */
+ 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.
+ */
+ public function delete($id, $optParams = array()) {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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.
+ * @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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_Playlist($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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.list)
+ *
+ * @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, 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 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 channelId This value indicates that the API should only return the specified channel's playlists.
+ * @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.
+ * @opt_param string maxResults USE_DESCRIPTION --- channels:list:maxResults
+ * @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 pageToken USE_DESCRIPTION --- channels:list:pageToken
+ * @return Google_Service_YouTube_PlaylistListResponse
+ */
+ public function listPlaylists($part, $optParams = array()) {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_PlaylistListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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.
+ * @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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_Playlist($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "search" collection of methods.
+ * Typical usage is:
+ *
+ * $youtubeService = new Google_YouTubeService(...);
+ * $search = $youtubeService->search;
+ *
+ */
+ 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.list)
+ *
+ * @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 channelId The channelId parameter indicates that the API response should only contain resources created by the channel
+ * @opt_param string channelType The channelType parameter lets you restrict a search to a particular type of channel.
+ * @opt_param bool forContentOwner 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 as a CMS account linked to the specified content owner and onBehalfOfContentOwner must be provided.
+ * @opt_param bool forMine The forMine parameter restricts the search to only retrieve videos owned by the authenticated user.
+ * @opt_param string maxResults USE_DESCRIPTION --- channels:list:maxResults
+ * @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 order The order parameter specifies the method that will be used to order resources in the API response.
+ * @opt_param string pageToken USE_DESCRIPTION --- channels:list:pageToken
+ * @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 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 q The q parameter specifies the query term to search for.
+ * @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 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 safeSearch The safeSearch parameter indicates whether the search results should include restricted content as well as standard content.
+ * @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 type The type parameter restricts a search query to only retrieve a particular type of resource.
+ * @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 videoCategoryId The videoCategoryId parameter filters video search results based on their category.
+ * @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 videoDimension The videoDimension parameter lets you restrict a search to only retrieve 2D or 3D videos.
+ * @opt_param string videoDuration The videoDuration parameter filters video search results based on their duration.
+ * @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 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 videoSyndicated The videoSyndicated parameter lets you to restrict a search to only videos that can be played outside youtube.com.
+ * @opt_param string videoType The videoType parameter lets you restrict a search to a particular type of videos.
+ * @return Google_Service_YouTube_SearchListResponse
+ */
+ public function listSearch($part, $optParams = array()) {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_SearchListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "subscriptions" collection of methods.
+ * Typical usage is:
+ *
+ * $youtubeService = new Google_YouTubeService(...);
+ * $subscriptions = $youtubeService->subscriptions;
+ *
+ */
+ 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);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * 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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_Subscription($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Returns subscription resources that match the API request criteria. (subscriptions.list)
+ *
+ * @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 channelId The channelId parameter specifies a YouTube channel ID. The API will only return that channel's subscriptions.
+ * @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 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.
+ * @opt_param string maxResults USE_DESCRIPTION --- channels:list:maxResults
+ * @opt_param bool mine Set this parameter's value to true to retrieve a feed of the authenticated user's subscriptions.
+ * @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 pageToken USE_DESCRIPTION --- channels:list:pageToken
+ * @return Google_Service_YouTube_SubscriptionListResponse
+ */
+ public function listSubscriptions($part, $optParams = array()) {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_SubscriptionListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "thumbnails" collection of methods.
+ * Typical usage is:
+ *
+ * $youtubeService = new Google_YouTubeService(...);
+ * $thumbnails = $youtubeService->thumbnails;
+ *
+ */
+ 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.
+ * @return Google_Service_YouTube_ThumbnailListResponse
+ */
+ public function set($videoId, $optParams = array()) {
+ $params = array('videoId' => $videoId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('set', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_ThumbnailListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "videoCategories" collection of methods.
+ * Typical usage is:
+ *
+ * $youtubeService = new Google_YouTubeService(...);
+ * $videoCategories = $youtubeService->videoCategories;
+ *
+ */
+ class Google_Service_YouTube_VideoCategories_Resource extends Google_Service_Resource {
+
+
+ /**
+ * Returns a list of categories that can be associated with YouTube videos. (videoCategories.list)
+ *
+ * @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 hl The hl parameter specifies the language that should be used for text values in the API response.
+ * @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 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.
+ * @return Google_Service_YouTube_VideoCategoryListResponse
+ */
+ public function listVideoCategories($part, $optParams = array()) {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_VideoCategoryListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "videos" collection of methods.
+ * Typical usage is:
+ *
+ * $youtubeService = new Google_YouTubeService(...);
+ * $videos = $youtubeService->videos;
+ *
+ */
+ 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.
+ */
+ public function delete($id, $optParams = array()) {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('delete', array($params));
+ return $data;
+ }
+ /**
+ * Get user ratings for videos. (videos.getRating)
+ *
+ * @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.
+ * @param array $optParams Optional parameters.
+ * @return Google_Service_YouTube_VideoGetRatingResponse
+ */
+ public function getRating($id, $optParams = array()) {
+ $params = array('id' => $id);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('getRating', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_VideoGetRatingResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * 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, player, statistics, status, 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 bool autoLevels The autoLevels parameter specifies whether the video should be auto-leveled by YouTube.
+ * @opt_param bool stabilize The stabilize parameter specifies whether the video should be stabilized by YouTube.
+ * @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);
+ $data = $this->__call('insert', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_Video($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Returns a list of videos that match the API request parameters. (videos.list)
+ *
+ * @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, player, statistics, status, 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 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.
+ * @opt_param string maxResults USE_DESCRIPTION --- channels:list:maxResults
+ * @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 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 pageToken USE_DESCRIPTION --- channels:list:pageToken
+ * @return Google_Service_YouTube_VideoListResponse
+ */
+ public function listVideos($part, $optParams = array()) {
+ $params = array('part' => $part);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_VideoListResponse($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Like, dislike, or remove rating from a video. (videos.rate)
+ *
+ * @param string $id The id parameter specifies the YouTube video ID.
+ * @param string $rating Specifies the rating to record.
+ * @param array $optParams Optional parameters.
+ */
+ public function rate($id, $rating, $optParams = array()) {
+ $params = array('id' => $id, 'rating' => $rating);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('rate', array($params));
+ return $data;
+ }
+ /**
+ * 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, player, statistics, status, 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.
+ * @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);
+ $data = $this->__call('update', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTube_Video($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_YouTube_AccessPolicy
+ extends Google_Collection {
+ public $allowed;
+ public $exception;
+ public function setAllowed($allowed) {
+ $this->allowed = $allowed;
+ }
+ public function getAllowed() {
+ return $this->allowed;
+ }
+ public function setException($exception) {
+ $this->exception = $exception;
+ }
+ public function getException() {
+ return $this->exception;
+ }
+}
+
+class Google_Service_YouTube_Activity
+ extends Google_Model {
+ protected $__contentDetailsType = 'Google_Service_YouTube_ActivityContentDetails';
+ protected $__contentDetailsDataType = '';
+ public $contentDetails;
+ public $etag;
+ public $id;
+ public $kind;
+ protected $__snippetType = 'Google_Service_YouTube_ActivitySnippet';
+ protected $__snippetDataType = '';
+ public $snippet;
+ 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 = '';
+ public $bulletin;
+ protected $__channelItemType = 'Google_Service_YouTube_ActivityContentDetailsChannelItem';
+ protected $__channelItemDataType = '';
+ public $channelItem;
+ protected $__commentType = 'Google_Service_YouTube_ActivityContentDetailsComment';
+ protected $__commentDataType = '';
+ public $comment;
+ protected $__favoriteType = 'Google_Service_YouTube_ActivityContentDetailsFavorite';
+ protected $__favoriteDataType = '';
+ public $favorite;
+ protected $__likeType = 'Google_Service_YouTube_ActivityContentDetailsLike';
+ protected $__likeDataType = '';
+ public $like;
+ protected $__playlistItemType = 'Google_Service_YouTube_ActivityContentDetailsPlaylistItem';
+ protected $__playlistItemDataType = '';
+ public $playlistItem;
+ protected $__promotedItemType = 'Google_Service_YouTube_ActivityContentDetailsPromotedItem';
+ protected $__promotedItemDataType = '';
+ public $promotedItem;
+ protected $__recommendationType = 'Google_Service_YouTube_ActivityContentDetailsRecommendation';
+ protected $__recommendationDataType = '';
+ public $recommendation;
+ protected $__socialType = 'Google_Service_YouTube_ActivityContentDetailsSocial';
+ protected $__socialDataType = '';
+ public $social;
+ protected $__subscriptionType = 'Google_Service_YouTube_ActivityContentDetailsSubscription';
+ protected $__subscriptionDataType = '';
+ public $subscription;
+ protected $__uploadType = 'Google_Service_YouTube_ActivityContentDetailsUpload';
+ protected $__uploadDataType = '';
+ public $upload;
+ 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 = '';
+ public $resourceId;
+ public function setResourceId(Google_Service_YouTube_ResourceId$resourceId) {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId() {
+ return $this->resourceId;
+ }
+}
+
+class Google_Service_YouTube_ActivityContentDetailsChannelItem
+ extends Google_Model {
+ protected $__resourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $__resourceIdDataType = '';
+ public $resourceId;
+ public function setResourceId(Google_Service_YouTube_ResourceId$resourceId) {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId() {
+ return $this->resourceId;
+ }
+}
+
+class Google_Service_YouTube_ActivityContentDetailsComment
+ extends Google_Model {
+ protected $__resourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $__resourceIdDataType = '';
+ public $resourceId;
+ public function setResourceId(Google_Service_YouTube_ResourceId$resourceId) {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId() {
+ return $this->resourceId;
+ }
+}
+
+class Google_Service_YouTube_ActivityContentDetailsFavorite
+ extends Google_Model {
+ protected $__resourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $__resourceIdDataType = '';
+ public $resourceId;
+ public function setResourceId(Google_Service_YouTube_ResourceId$resourceId) {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId() {
+ return $this->resourceId;
+ }
+}
+
+class Google_Service_YouTube_ActivityContentDetailsLike
+ extends Google_Model {
+ protected $__resourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $__resourceIdDataType = '';
+ public $resourceId;
+ 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 $resourceId;
+ 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_Model {
+ public $adTag;
+ public $clickTrackingUrl;
+ public $creativeViewUrl;
+ public $ctaType;
+ public $descriptionText;
+ public $destinationUrl;
+ 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 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 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 = '';
+ public $resourceId;
+ protected $__seedResourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $__seedResourceIdDataType = '';
+ public $seedResourceId;
+ 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 $resourceId;
+ 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 = '';
+ public $resourceId;
+ public function setResourceId(Google_Service_YouTube_ResourceId$resourceId) {
+ $this->resourceId = $resourceId;
+ }
+ public function getResourceId() {
+ return $this->resourceId;
+ }
+}
+
+class Google_Service_YouTube_ActivityContentDetailsUpload
+ extends Google_Model {
+ public $videoId;
+ public function setVideoId($videoId) {
+ $this->videoId = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ protected $__pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $__pageInfoDataType = '';
+ public $pageInfo;
+ public $prevPageToken;
+ 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;
+ }
+}
+
+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 $thumbnails;
+ 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_Channel
+ extends Google_Model {
+ protected $__brandingSettingsType = 'Google_Service_YouTube_ChannelBrandingSettings';
+ protected $__brandingSettingsDataType = '';
+ public $brandingSettings;
+ protected $__contentDetailsType = 'Google_Service_YouTube_ChannelContentDetails';
+ protected $__contentDetailsDataType = '';
+ public $contentDetails;
+ protected $__conversionPingsType = 'Google_Service_YouTube_ChannelConversionPings';
+ protected $__conversionPingsDataType = '';
+ public $conversionPings;
+ public $etag;
+ public $id;
+ protected $__invideoPromotionType = 'Google_Service_YouTube_InvideoPromotion';
+ protected $__invideoPromotionDataType = '';
+ public $invideoPromotion;
+ public $kind;
+ protected $__snippetType = 'Google_Service_YouTube_ChannelSnippet';
+ protected $__snippetDataType = '';
+ public $snippet;
+ protected $__statisticsType = 'Google_Service_YouTube_ChannelStatistics';
+ protected $__statisticsDataType = '';
+ public $statistics;
+ protected $__statusType = 'Google_Service_YouTube_ChannelStatus';
+ protected $__statusDataType = '';
+ public $status;
+ protected $__topicDetailsType = 'Google_Service_YouTube_ChannelTopicDetails';
+ protected $__topicDetailsDataType = '';
+ public $topicDetails;
+ 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 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_ChannelBrandingSettings
+ extends Google_Collection {
+ protected $__channelType = 'Google_Service_YouTube_ChannelSettings';
+ protected $__channelDataType = '';
+ public $channel;
+ protected $__hintsType = 'Google_Service_YouTube_PropertyValue';
+ protected $__hintsDataType = 'array';
+ public $hints;
+ protected $__imageType = 'Google_Service_YouTube_ImageSettings';
+ protected $__imageDataType = '';
+ public $image;
+ protected $__watchType = 'Google_Service_YouTube_WatchSettings';
+ protected $__watchDataType = '';
+ public $watch;
+ 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 $relatedPlaylists;
+ 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_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';
+ public $pings;
+ public function setPings($pings) {
+ $this->pings = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ protected $__pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $__pageInfoDataType = '';
+ public $pageInfo;
+ public $prevPageToken;
+ 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;
+ }
+}
+
+class Google_Service_YouTube_ChannelSettings
+ extends Google_Collection {
+ public $defaultTab;
+ public $description;
+ public $featuredChannelsTitle;
+ public $featuredChannelsUrls;
+ public $keywords;
+ public $moderateComments;
+ 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 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 $thumbnails;
+ 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 $subscriberCount;
+ public $videoCount;
+ public $viewCount;
+ public function setCommentCount($commentCount) {
+ $this->commentCount = $commentCount;
+ }
+ public function getCommentCount() {
+ return $this->commentCount;
+ }
+ 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_ChannelTopicDetails
+ extends Google_Collection {
+ public $topicIds;
+ public function setTopicIds($topicIds) {
+ $this->topicIds = $topicIds;
+ }
+ public function getTopicIds() {
+ return $this->topicIds;
+ }
+}
+
+class Google_Service_YouTube_ContentRating
+ extends Google_Model {
+ public $acbRating;
+ public $bbfcRating;
+ public $cbfcRating;
+ public $chvrsRating;
+ public $djctqRating;
+ public $eirinRating;
+ public $fmocRating;
+ public $fskRating;
+ public $icaaRating;
+ public $kmrbRating;
+ public $mpaaRating;
+ public $oflcRating;
+ public $rtcRating;
+ public $russiaRating;
+ public $tvpgRating;
+ public function setAcbRating($acbRating) {
+ $this->acbRating = $acbRating;
+ }
+ public function getAcbRating() {
+ return $this->acbRating;
+ }
+ public function setBbfcRating($bbfcRating) {
+ $this->bbfcRating = $bbfcRating;
+ }
+ public function getBbfcRating() {
+ return $this->bbfcRating;
+ }
+ public function setCbfcRating($cbfcRating) {
+ $this->cbfcRating = $cbfcRating;
+ }
+ public function getCbfcRating() {
+ return $this->cbfcRating;
+ }
+ public function setChvrsRating($chvrsRating) {
+ $this->chvrsRating = $chvrsRating;
+ }
+ public function getChvrsRating() {
+ return $this->chvrsRating;
+ }
+ public function setDjctqRating($djctqRating) {
+ $this->djctqRating = $djctqRating;
+ }
+ public function getDjctqRating() {
+ return $this->djctqRating;
+ }
+ public function setEirinRating($eirinRating) {
+ $this->eirinRating = $eirinRating;
+ }
+ public function getEirinRating() {
+ return $this->eirinRating;
+ }
+ public function setFmocRating($fmocRating) {
+ $this->fmocRating = $fmocRating;
+ }
+ public function getFmocRating() {
+ return $this->fmocRating;
+ }
+ public function setFskRating($fskRating) {
+ $this->fskRating = $fskRating;
+ }
+ public function getFskRating() {
+ return $this->fskRating;
+ }
+ public function setIcaaRating($icaaRating) {
+ $this->icaaRating = $icaaRating;
+ }
+ public function getIcaaRating() {
+ return $this->icaaRating;
+ }
+ public function setKmrbRating($kmrbRating) {
+ $this->kmrbRating = $kmrbRating;
+ }
+ public function getKmrbRating() {
+ return $this->kmrbRating;
+ }
+ public function setMpaaRating($mpaaRating) {
+ $this->mpaaRating = $mpaaRating;
+ }
+ public function getMpaaRating() {
+ return $this->mpaaRating;
+ }
+ public function setOflcRating($oflcRating) {
+ $this->oflcRating = $oflcRating;
+ }
+ public function getOflcRating() {
+ return $this->oflcRating;
+ }
+ public function setRtcRating($rtcRating) {
+ $this->rtcRating = $rtcRating;
+ }
+ public function getRtcRating() {
+ return $this->rtcRating;
+ }
+ public function setRussiaRating($russiaRating) {
+ $this->russiaRating = $russiaRating;
+ }
+ public function getRussiaRating() {
+ return $this->russiaRating;
+ }
+ public function setTvpgRating($tvpgRating) {
+ $this->tvpgRating = $tvpgRating;
+ }
+ public function getTvpgRating() {
+ return $this->tvpgRating;
+ }
+}
+
+class Google_Service_YouTube_GeoPoint
+ extends Google_Model {
+ public $elevation;
+ public $latitude;
+ public $longitude;
+ public function setElevation($elevation) {
+ $this->elevation = $elevation;
+ }
+ public function getElevation() {
+ return $this->elevation;
+ }
+ 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 $snippet;
+ 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 $items;
+ public $kind;
+ 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;
+ }
+}
+
+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_ImageSettings
+ extends Google_Model {
+ protected $__backgroundImageUrlType = 'Google_Service_YouTube_LocalizedProperty';
+ protected $__backgroundImageUrlDataType = '';
+ public $backgroundImageUrl;
+ public $bannerImageUrl;
+ public $bannerMobileExtraHdImageUrl;
+ public $bannerMobileHdImageUrl;
+ public $bannerMobileImageUrl;
+ public $bannerMobileLowImageUrl;
+ public $bannerMobileMediumHdImageUrl;
+ public $bannerTabletExtraHdImageUrl;
+ public $bannerTabletHdImageUrl;
+ public $bannerTabletImageUrl;
+ public $bannerTabletLowImageUrl;
+ public $bannerTvImageUrl;
+ protected $__largeBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty';
+ protected $__largeBrandedBannerImageImapScriptDataType = '';
+ public $largeBrandedBannerImageImapScript;
+ protected $__largeBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty';
+ protected $__largeBrandedBannerImageUrlDataType = '';
+ public $largeBrandedBannerImageUrl;
+ protected $__smallBrandedBannerImageImapScriptType = 'Google_Service_YouTube_LocalizedProperty';
+ protected $__smallBrandedBannerImageImapScriptDataType = '';
+ public $smallBrandedBannerImageImapScript;
+ protected $__smallBrandedBannerImageUrlType = 'Google_Service_YouTube_LocalizedProperty';
+ protected $__smallBrandedBannerImageUrlDataType = '';
+ public $smallBrandedBannerImageUrl;
+ public $trackingImageUrl;
+ public $watchIconImageUrl;
+ public function setBackgroundImageUrl(Google_Service_YouTube_LocalizedProperty$backgroundImageUrl) {
+ $this->backgroundImageUrl = $backgroundImageUrl;
+ }
+ public function getBackgroundImageUrl() {
+ return $this->backgroundImageUrl;
+ }
+ 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 setBannerTvImageUrl($bannerTvImageUrl) {
+ $this->bannerTvImageUrl = $bannerTvImageUrl;
+ }
+ public function getBannerTvImageUrl() {
+ return $this->bannerTvImageUrl;
+ }
+ 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_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 {
+ public $channelId;
+ protected $__itemsType = 'Google_Service_YouTube_PromotedItemId';
+ protected $__itemsDataType = 'array';
+ public $items;
+ protected $__positionType = 'Google_Service_YouTube_InvideoPosition';
+ protected $__positionDataType = '';
+ public $position;
+ protected $__timingType = 'Google_Service_YouTube_InvideoTiming';
+ protected $__timingDataType = '';
+ public $timing;
+ public function setChannelId($channelId) {
+ $this->channelId = $channelId;
+ }
+ public function getChannelId() {
+ return $this->channelId;
+ }
+ 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;
+ }
+ public function setTiming(Google_Service_YouTube_InvideoTiming$timing) {
+ $this->timing = $timing;
+ }
+ public function getTiming() {
+ return $this->timing;
+ }
+}
+
+class Google_Service_YouTube_InvideoTiming
+ extends Google_Model {
+ public $offsetMs;
+ public $type;
+ 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 $contentDetails;
+ public $etag;
+ public $id;
+ public $kind;
+ protected $__snippetType = 'Google_Service_YouTube_LiveBroadcastSnippet';
+ protected $__snippetDataType = '';
+ public $snippet;
+ protected $__statusType = 'Google_Service_YouTube_LiveBroadcastStatus';
+ protected $__statusDataType = '';
+ public $status;
+ 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 $enableContentEncryption;
+ public $enableDvr;
+ public $enableEmbed;
+ protected $__monitorStreamType = 'Google_Service_YouTube_LiveBroadcastContentDetailsMonitorStream';
+ protected $__monitorStreamDataType = '';
+ public $monitorStream;
+ public $recordFromStart;
+ public $startWithSlate;
+ public function setBoundStreamId($boundStreamId) {
+ $this->boundStreamId = $boundStreamId;
+ }
+ public function getBoundStreamId() {
+ return $this->boundStreamId;
+ }
+ 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_LiveBroadcastContentDetailsMonitorStream$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_LiveBroadcastContentDetailsMonitorStream
+ 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_LiveBroadcastList
+ extends Google_Collection {
+ public $etag;
+ public $eventId;
+ protected $__itemsType = 'Google_Service_YouTube_LiveBroadcast';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $nextPageToken;
+ protected $__pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $__pageInfoDataType = '';
+ public $pageInfo;
+ public $prevPageToken;
+ 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;
+ }
+}
+
+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 $thumbnails;
+ 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 $privacyStatus;
+ public function setLifeCycleStatus($lifeCycleStatus) {
+ $this->lifeCycleStatus = $lifeCycleStatus;
+ }
+ public function getLifeCycleStatus() {
+ return $this->lifeCycleStatus;
+ }
+ public function setPrivacyStatus($privacyStatus) {
+ $this->privacyStatus = $privacyStatus;
+ }
+ public function getPrivacyStatus() {
+ return $this->privacyStatus;
+ }
+}
+
+class Google_Service_YouTube_LiveStream
+ extends Google_Model {
+ protected $__cdnType = 'Google_Service_YouTube_LiveStreamCdn';
+ protected $__cdnDataType = '';
+ public $cdn;
+ public $etag;
+ public $id;
+ public $kind;
+ protected $__snippetType = 'Google_Service_YouTube_LiveStreamSnippet';
+ protected $__snippetDataType = '';
+ public $snippet;
+ protected $__statusType = 'Google_Service_YouTube_LiveStreamStatus';
+ protected $__statusDataType = '';
+ public $status;
+ public function setCdn(Google_Service_YouTube_LiveStreamCdn$cdn) {
+ $this->cdn = $cdn;
+ }
+ public function getCdn() {
+ return $this->cdn;
+ }
+ 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_LiveStreamCdn
+ extends Google_Model {
+ public $format;
+ protected $__ingestionInfoType = 'Google_Service_YouTube_LiveStreamCdnIngestionInfo';
+ protected $__ingestionInfoDataType = '';
+ public $ingestionInfo;
+ public $ingestionType;
+ public function setFormat($format) {
+ $this->format = $format;
+ }
+ public function getFormat() {
+ return $this->format;
+ }
+ public function setIngestionInfo(Google_Service_YouTube_LiveStreamCdnIngestionInfo$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_LiveStreamCdnIngestionInfo
+ 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_LiveStreamList
+ extends Google_Collection {
+ public $etag;
+ public $eventId;
+ protected $__itemsType = 'Google_Service_YouTube_LiveStream';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $nextPageToken;
+ protected $__pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $__pageInfoDataType = '';
+ public $pageInfo;
+ public $prevPageToken;
+ 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;
+ }
+}
+
+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;
+ public function setStreamStatus($streamStatus) {
+ $this->streamStatus = $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 $localized;
+ 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_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 $contentDetails;
+ public $etag;
+ public $id;
+ public $kind;
+ protected $__playerType = 'Google_Service_YouTube_PlaylistPlayer';
+ protected $__playerDataType = '';
+ public $player;
+ protected $__snippetType = 'Google_Service_YouTube_PlaylistSnippet';
+ protected $__snippetDataType = '';
+ public $snippet;
+ protected $__statusType = 'Google_Service_YouTube_PlaylistStatus';
+ protected $__statusDataType = '';
+ public $status;
+ 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;
+ public function setItemCount($itemCount) {
+ $this->itemCount = $itemCount;
+ }
+ public function getItemCount() {
+ return $this->itemCount;
+ }
+}
+
+class Google_Service_YouTube_PlaylistItem
+ extends Google_Model {
+ protected $__contentDetailsType = 'Google_Service_YouTube_PlaylistItemContentDetails';
+ protected $__contentDetailsDataType = '';
+ public $contentDetails;
+ public $etag;
+ public $id;
+ public $kind;
+ protected $__snippetType = 'Google_Service_YouTube_PlaylistItemSnippet';
+ protected $__snippetDataType = '';
+ public $snippet;
+ protected $__statusType = 'Google_Service_YouTube_PlaylistItemStatus';
+ protected $__statusDataType = '';
+ public $status;
+ 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_PlaylistItemListResponse
+ extends Google_Collection {
+ public $etag;
+ public $eventId;
+ protected $__itemsType = 'Google_Service_YouTube_PlaylistItem';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $nextPageToken;
+ protected $__pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $__pageInfoDataType = '';
+ public $pageInfo;
+ public $prevPageToken;
+ 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;
+ }
+}
+
+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 = '';
+ public $resourceId;
+ protected $__thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
+ protected $__thumbnailsDataType = '';
+ public $thumbnails;
+ 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;
+ public function setPrivacyStatus($privacyStatus) {
+ $this->privacyStatus = $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 $items;
+ public $kind;
+ public $nextPageToken;
+ protected $__pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $__pageInfoDataType = '';
+ public $pageInfo;
+ public $prevPageToken;
+ 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;
+ }
+}
+
+class Google_Service_YouTube_PlaylistPlayer
+ extends Google_Model {
+ public $embedHtml;
+ public function setEmbedHtml($embedHtml) {
+ $this->embedHtml = $embedHtml;
+ }
+ public function getEmbedHtml() {
+ return $this->embedHtml;
+ }
+}
+
+class Google_Service_YouTube_PlaylistSnippet
+ extends Google_Model {
+ public $channelId;
+ public $channelTitle;
+ public $description;
+ public $publishedAt;
+ protected $__thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
+ protected $__thumbnailsDataType = '';
+ public $thumbnails;
+ 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 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;
+ public function setPrivacyStatus($privacyStatus) {
+ $this->privacyStatus = $privacyStatus;
+ }
+ public function getPrivacyStatus() {
+ return $this->privacyStatus;
+ }
+}
+
+class Google_Service_YouTube_PromotedItemId
+ extends Google_Model {
+ public $type;
+ public $videoId;
+ 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;
+ }
+}
+
+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_SearchListResponse
+ extends Google_Collection {
+ public $etag;
+ public $eventId;
+ protected $__itemsType = 'Google_Service_YouTube_SearchResult';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $nextPageToken;
+ protected $__pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $__pageInfoDataType = '';
+ public $pageInfo;
+ public $prevPageToken;
+ 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;
+ }
+}
+
+class Google_Service_YouTube_SearchResult
+ extends Google_Model {
+ public $etag;
+ protected $__idType = 'Google_Service_YouTube_ResourceId';
+ protected $__idDataType = '';
+ public $id;
+ public $kind;
+ protected $__snippetType = 'Google_Service_YouTube_SearchResultSnippet';
+ protected $__snippetDataType = '';
+ public $snippet;
+ 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 $publishedAt;
+ protected $__thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
+ protected $__thumbnailsDataType = '';
+ public $thumbnails;
+ 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 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 $contentDetails;
+ public $etag;
+ public $id;
+ public $kind;
+ protected $__snippetType = 'Google_Service_YouTube_SubscriptionSnippet';
+ protected $__snippetDataType = '';
+ public $snippet;
+ protected $__subscriberSnippetType = 'Google_Service_YouTube_SubscriptionSubscriberSnippet';
+ protected $__subscriberSnippetDataType = '';
+ public $subscriberSnippet;
+ 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 $newItemCount;
+ public $totalItemCount;
+ 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 $items;
+ public $kind;
+ public $nextPageToken;
+ protected $__pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $__pageInfoDataType = '';
+ public $pageInfo;
+ public $prevPageToken;
+ 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;
+ }
+}
+
+class Google_Service_YouTube_SubscriptionSnippet
+ extends Google_Model {
+ public $channelId;
+ public $channelTitle;
+ public $description;
+ public $publishedAt;
+ protected $__resourceIdType = 'Google_Service_YouTube_ResourceId';
+ protected $__resourceIdDataType = '';
+ public $resourceId;
+ protected $__thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
+ protected $__thumbnailsDataType = '';
+ public $thumbnails;
+ 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 $thumbnails;
+ 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_ThumbnailDetails
+ extends Google_Model {
+ protected $__defaultType = 'Google_Service_YouTube_Thumbnail';
+ protected $__defaultDataType = '';
+ public $default;
+ protected $__highType = 'Google_Service_YouTube_Thumbnail';
+ protected $__highDataType = '';
+ public $high;
+ protected $__maxresType = 'Google_Service_YouTube_Thumbnail';
+ protected $__maxresDataType = '';
+ public $maxres;
+ protected $__mediumType = 'Google_Service_YouTube_Thumbnail';
+ protected $__mediumDataType = '';
+ public $medium;
+ protected $__standardType = 'Google_Service_YouTube_Thumbnail';
+ protected $__standardDataType = '';
+ public $standard;
+ 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_ThumbnailListResponse
+ extends Google_Collection {
+ public $etag;
+ protected $__itemsType = 'Google_Service_YouTube_ThumbnailDetails';
+ protected $__itemsDataType = 'array';
+ public $items;
+ 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_Video
+ extends Google_Model {
+ protected $__ageGatingDetailsType = 'Google_Service_YouTube_VideoAgeGating';
+ protected $__ageGatingDetailsDataType = '';
+ public $ageGatingDetails;
+ protected $__contentDetailsType = 'Google_Service_YouTube_VideoContentDetails';
+ protected $__contentDetailsDataType = '';
+ public $contentDetails;
+ protected $__conversionPingsType = 'Google_Service_YouTube_VideoConversionPings';
+ protected $__conversionPingsDataType = '';
+ public $conversionPings;
+ public $etag;
+ protected $__fileDetailsType = 'Google_Service_YouTube_VideoFileDetails';
+ protected $__fileDetailsDataType = '';
+ public $fileDetails;
+ public $id;
+ public $kind;
+ protected $__monetizationDetailsType = 'Google_Service_YouTube_VideoMonetizationDetails';
+ protected $__monetizationDetailsDataType = '';
+ public $monetizationDetails;
+ protected $__playerType = 'Google_Service_YouTube_VideoPlayer';
+ protected $__playerDataType = '';
+ public $player;
+ protected $__processingDetailsType = 'Google_Service_YouTube_VideoProcessingDetails';
+ protected $__processingDetailsDataType = '';
+ public $processingDetails;
+ protected $__projectDetailsType = 'Google_Service_YouTube_VideoProjectDetails';
+ protected $__projectDetailsDataType = '';
+ public $projectDetails;
+ protected $__recordingDetailsType = 'Google_Service_YouTube_VideoRecordingDetails';
+ protected $__recordingDetailsDataType = '';
+ public $recordingDetails;
+ protected $__snippetType = 'Google_Service_YouTube_VideoSnippet';
+ protected $__snippetDataType = '';
+ public $snippet;
+ protected $__statisticsType = 'Google_Service_YouTube_VideoStatistics';
+ protected $__statisticsDataType = '';
+ public $statistics;
+ protected $__statusType = 'Google_Service_YouTube_VideoStatus';
+ protected $__statusDataType = '';
+ public $status;
+ protected $__suggestionsType = 'Google_Service_YouTube_VideoSuggestions';
+ protected $__suggestionsDataType = '';
+ public $suggestions;
+ protected $__topicDetailsType = 'Google_Service_YouTube_VideoTopicDetails';
+ protected $__topicDetailsDataType = '';
+ public $topicDetails;
+ public function setAgeGatingDetails(Google_Service_YouTube_VideoAgeGating$ageGatingDetails) {
+ $this->ageGatingDetails = $ageGatingDetails;
+ }
+ public function getAgeGatingDetails() {
+ return $this->ageGatingDetails;
+ }
+ 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 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_VideoCategory
+ extends Google_Model {
+ public $etag;
+ public $id;
+ public $kind;
+ protected $__snippetType = 'Google_Service_YouTube_VideoCategorySnippet';
+ protected $__snippetDataType = '';
+ public $snippet;
+ 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 $items;
+ public $kind;
+ 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;
+ }
+}
+
+class Google_Service_YouTube_VideoCategorySnippet
+ 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_VideoContentDetails
+ extends Google_Model {
+ public $caption;
+ protected $__contentRatingType = 'Google_Service_YouTube_ContentRating';
+ protected $__contentRatingDataType = '';
+ public $contentRating;
+ protected $__countryRestrictionType = 'Google_Service_YouTube_AccessPolicy';
+ protected $__countryRestrictionDataType = '';
+ public $countryRestriction;
+ public $definition;
+ public $dimension;
+ public $duration;
+ public $licensedContent;
+ protected $__regionRestrictionType = 'Google_Service_YouTube_VideoContentDetailsRegionRestriction';
+ protected $__regionRestrictionDataType = '';
+ public $regionRestriction;
+ 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_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';
+ public $pings;
+ public function setPings($pings) {
+ $this->pings = $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 $audioStreams;
+ public $bitrateBps;
+ public $container;
+ public $creationTime;
+ public $durationMs;
+ public $fileName;
+ public $fileSize;
+ public $fileType;
+ protected $__recordingLocationType = 'Google_Service_YouTube_GeoPoint';
+ protected $__recordingLocationDataType = '';
+ public $recordingLocation;
+ protected $__videoStreamsType = 'Google_Service_YouTube_VideoFileDetailsVideoStream';
+ protected $__videoStreamsDataType = 'array';
+ public $videoStreams;
+ 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_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 $items;
+ 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 $items;
+ public $kind;
+ public $nextPageToken;
+ protected $__pageInfoType = 'Google_Service_YouTube_PageInfo';
+ protected $__pageInfoDataType = '';
+ public $pageInfo;
+ public $prevPageToken;
+ 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;
+ }
+}
+
+class Google_Service_YouTube_VideoMonetizationDetails
+ extends Google_Model {
+ protected $__accessType = 'Google_Service_YouTube_AccessPolicy';
+ protected $__accessDataType = '';
+ public $access;
+ public function setAccess(Google_Service_YouTube_AccessPolicy$access) {
+ $this->access = $access;
+ }
+ public function getAccess() {
+ return $this->access;
+ }
+}
+
+class Google_Service_YouTube_VideoPlayer
+ extends Google_Model {
+ public $embedHtml;
+ public function setEmbedHtml($embedHtml) {
+ $this->embedHtml = $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 $processingProgress;
+ 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_VideoProjectDetails
+ extends Google_Collection {
+ public $tags;
+ public function setTags($tags) {
+ $this->tags = $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_VideoRecordingDetails
+ extends Google_Model {
+ protected $__locationType = 'Google_Service_YouTube_GeoPoint';
+ protected $__locationDataType = '';
+ public $location;
+ 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 $publishedAt;
+ public $tags;
+ protected $__thumbnailsType = 'Google_Service_YouTube_ThumbnailDetails';
+ protected $__thumbnailsDataType = '';
+ public $thumbnails;
+ 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 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_VideoStatus
+ extends Google_Model {
+ public $embeddable;
+ public $failureReason;
+ public $license;
+ public $privacyStatus;
+ public $publicStatsViewable;
+ 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 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 $tagSuggestions;
+ 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_VideoTopicDetails
+ extends Google_Collection {
+ public $topicIds;
+ 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;
+ }
+}
diff --git a/src/Google/Service/YouTubeAnalytics.php b/src/Google/Service/YouTubeAnalytics.php
new file mode 100644
index 0000000..c3892db
--- /dev/null
+++ b/src/Google/Service/YouTubeAnalytics.php
@@ -0,0 +1,143 @@
+
+ * Retrieve your YouTube Analytics reports.
+ *
+ *
+ * + * For more information about this service, see the + * API Documentation + *
+ * + * @author Google, Inc. + */ +class Google_Service_YouTubeAnalytics extends Google_Service { + public $reports; + /** + * Constructs the internal representation of the YouTubeAnalytics service. + * + * @param Google_Client $client + */ + public function __construct(Google_Client $client) { + $this->servicePath = 'youtube/analytics/v1/'; + $this->version = 'v1'; + $this->serviceName = 'youtubeAnalytics'; + + $client->addService($this->serviceName, $this->version); + $this->reports = new Google_Service_YouTubeAnalytics_Reports_Resource($this, $this->serviceName, 'reports', json_decode('{"methods": {"query": {"id": "youtubeAnalytics.reports.query", "path": "reports", "httpMethod": "GET", "parameters": {"dimensions": {"type": "string", "location": "query"}, "end-date": {"type": "string", "required": true, "location": "query"}, "filters": {"type": "string", "location": "query"}, "ids": {"type": "string", "required": true, "location": "query"}, "max-results": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "metrics": {"type": "string", "required": true, "location": "query"}, "sort": {"type": "string", "location": "query"}, "start-date": {"type": "string", "required": true, "location": "query"}, "start-index": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}}, "response": {"$ref": "ResultTable"}, "scopes": ["https://www.googleapis.com/auth/yt-analytics-monetary.readonly", "https://www.googleapis.com/auth/yt-analytics.readonly"]}}}', true)); + + } +} + + + /** + * The "reports" collection of methods. + * Typical usage is: + *
+ * $youtubeAnalyticsService = new Google_YouTubeAnalyticsService(...);
+ * $reports = $youtubeAnalyticsService->reports;
+ *
+ */
+ 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 $start_date The start date for fetching YouTube Analytics data. The value should be in YYYY-MM-DD format.
+ * @param string $end_date The end date for fetching YouTube Analytics data. The value should be in YYYY-MM-DD format.
+ * @param string $metrics A comma-separated list of YouTube Analytics metrics, such as views or likes,dislikes. See the Available Reports document for a list of the reports that you can retrieve and the metrics available in each report, and see the Metrics document for definitions of those metrics.
+ * @param array $optParams Optional parameters.
+ *
+ * @opt_param string dimensions A comma-separated list of YouTube Analytics dimensions, such as views or ageGroup,gender. See the Available Reports document for a list of the reports that you can retrieve and the dimensions used for those reports. Also see the Dimensions document for definitions of those dimensions.
+ * @opt_param string filters A list of filters that should be applied when retrieving YouTube Analytics data. The Available Reports document identifies the dimensions that can be used to filter each report, and the Dimensions document defines those dimensions. If a request uses multiple filters, join them together with a semicolon (;), and the returned result table will satisfy both filters. For example, a filters parameter value of video==dMH0bHeiRNg;country==IT restricts the result set to include data for the given video in Italy.
+ * @opt_param int max-results The maximum number of rows to include in the response.
+ * @opt_param string sort A comma-separated list of dimensions or metrics that determine the sort order for YouTube Analytics data. By default the sort order is ascending. The '-' prefix causes descending sort order.
+ * @opt_param int start-index An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter (one-based, inclusive).
+ * @return Google_Service_YouTubeAnalytics_ResultTable
+ */
+ public function query($ids, $start_date, $end_date, $metrics, $optParams = array()) {
+ $params = array('ids' => $ids, 'start-date' => $start_date, 'end-date' => $end_date, 'metrics' => $metrics);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('query', array($params));
+ if ($this->useObjects()) {
+ return new Google_Service_YouTubeAnalytics_ResultTable($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+
+
+
+class Google_Service_YouTubeAnalytics_ResultTable
+ extends Google_Collection {
+ protected $__columnHeadersType = 'Google_Service_YouTubeAnalytics_ResultTableColumnHeaders';
+ protected $__columnHeadersDataType = 'array';
+ public $columnHeaders;
+ public $kind;
+ public $rows;
+ public function setColumnHeaders($columnHeaders) {
+ $this->columnHeaders = $columnHeaders;
+ }
+ public function getColumnHeaders() {
+ return $this->columnHeaders;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setRows($rows) {
+ $this->rows = $rows;
+ }
+ public function getRows() {
+ return $this->rows;
+ }
+}
+
+class Google_Service_YouTubeAnalytics_ResultTableColumnHeaders
+ 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;
+ }
+}
From 62e7a25f0b09cef29684eab29bf61e20ff6a39f1 Mon Sep 17 00:00:00 2001
From: ianbarber